Deploying to gh-pages from @ maplibre/maplibre-rs@74d76a1460 🚀

This commit is contained in:
maxammann 2024-07-23 20:25:34 +00:00
parent 93c40adfd0
commit 42267b3285
18 changed files with 76 additions and 21 deletions

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `event_loop` mod in crate `maplibre`."><title>maplibre::event_loop - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-081576b923113409.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="maplibre" data-themes="" data-resource-suffix="" data-rustdoc-version="1.79.0 (129f3b996 2024-06-10)" data-channel="1.79.0" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../maplibre/index.html">maplibre</a><span class="version">0.1.0</span></h2></div><h2 class="location"><a href="#">Module event_loop</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#enums">Enums</a></li><li><a href="#traits">Traits</a></li></ul></section><h2><a href="../index.html">In crate maplibre</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../maplibre/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type S or / to search, ? for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../index.html">maplibre</a>::<wbr><a class="mod" href="#">event_loop</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../src/maplibre/event_loop.rs.html#1-37">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="enum" href="enum.SendEventError.html" title="enum maplibre::event_loop::SendEventError">SendEventError</a></div><div class="desc docblock-short">When sending events to an event loop errors can occur.</div></li></ul><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="trait" href="trait.EventLoop.html" title="trait maplibre::event_loop::EventLoop">EventLoop</a></div></li><li><div class="item-name"><a class="trait" href="trait.EventLoopConfig.html" title="trait maplibre::event_loop::EventLoopConfig">EventLoopConfig</a></div></li><li><div class="item-name"><a class="trait" href="trait.EventLoopProxy.html" title="trait maplibre::event_loop::EventLoopProxy">EventLoopProxy</a></div></li></ul></section></div></main></body></html> <!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `event_loop` mod in crate `maplibre`."><title>maplibre::event_loop - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-081576b923113409.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="maplibre" data-themes="" data-resource-suffix="" data-rustdoc-version="1.79.0 (129f3b996 2024-06-10)" data-channel="1.79.0" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../maplibre/index.html">maplibre</a><span class="version">0.1.0</span></h2></div><h2 class="location"><a href="#">Module event_loop</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#traits">Traits</a></li></ul></section><h2><a href="../index.html">In crate maplibre</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../maplibre/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type S or / to search, ? for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../index.html">maplibre</a>::<wbr><a class="mod" href="#">event_loop</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../src/maplibre/event_loop.rs.html#1-42">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.EventLoopError.html" title="struct maplibre::event_loop::EventLoopError">EventLoopError</a></div><div class="desc docblock-short">When sending events to an event loop errors can occur.</div></li></ul><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="enum" href="enum.SendEventError.html" title="enum maplibre::event_loop::SendEventError">SendEventError</a></div><div class="desc docblock-short">When sending events to an event loop errors can occur.</div></li></ul><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="trait" href="trait.EventLoop.html" title="trait maplibre::event_loop::EventLoop">EventLoop</a></div></li><li><div class="item-name"><a class="trait" href="trait.EventLoopConfig.html" title="trait maplibre::event_loop::EventLoopConfig">EventLoopConfig</a></div></li><li><div class="item-name"><a class="trait" href="trait.EventLoopProxy.html" title="trait maplibre::event_loop::EventLoopProxy">EventLoopProxy</a></div></li></ul></section></div></main></body></html>

View File

@ -1 +1 @@
window.SIDEBAR_ITEMS = {"enum":["SendEventError"],"trait":["EventLoop","EventLoopConfig","EventLoopProxy"]}; window.SIDEBAR_ITEMS = {"enum":["SendEventError"],"struct":["EventLoopError"],"trait":["EventLoop","EventLoopConfig","EventLoopProxy"]};

File diff suppressed because one or more lines are too long

View File

@ -1,11 +1,19 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `EventLoop` trait in crate `maplibre`."><title>EventLoop in maplibre::event_loop - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-081576b923113409.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="maplibre" data-themes="" data-resource-suffix="" data-rustdoc-version="1.79.0 (129f3b996 2024-06-10)" data-channel="1.79.0" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../maplibre/index.html">maplibre</a><span class="version">0.1.0</span></h2></div><h2 class="location"><a href="#">EventLoop</a></h2><div class="sidebar-elems"><section><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.EventLoopProxy">EventLoopProxy</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.create_proxy">create_proxy</a></li><li><a href="#tymethod.run">run</a></li></ul><h3><a href="#object-safety">Object Safety</a></h3><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In maplibre::event_loop</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../maplibre/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type S or / to search, ? for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Trait <a href="../index.html">maplibre</a>::<wbr><a href="index.html">event_loop</a>::<wbr><a class="trait" href="#">EventLoop</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../src/maplibre/event_loop.rs.html#28-37">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub trait EventLoop&lt;ET: 'static + <a class="trait" href="https://doc.rust-lang.org/1.79.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&gt; { <!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `EventLoop` trait in crate `maplibre`."><title>EventLoop in maplibre::event_loop - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-081576b923113409.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="maplibre" data-themes="" data-resource-suffix="" data-rustdoc-version="1.79.0 (129f3b996 2024-06-10)" data-channel="1.79.0" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../maplibre/index.html">maplibre</a><span class="version">0.1.0</span></h2></div><h2 class="location"><a href="#">EventLoop</a></h2><div class="sidebar-elems"><section><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.EventLoopProxy">EventLoopProxy</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.create_proxy">create_proxy</a></li><li><a href="#tymethod.run">run</a></li></ul><h3><a href="#object-safety">Object Safety</a></h3><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In maplibre::event_loop</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../maplibre/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type S or / to search, ? for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Trait <a href="../index.html">maplibre</a>::<wbr><a href="index.html">event_loop</a>::<wbr><a class="trait" href="#">EventLoop</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../src/maplibre/event_loop.rs.html#33-42">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub trait EventLoop&lt;ET: 'static + <a class="trait" href="https://doc.rust-lang.org/1.79.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&gt; {
type <a href="#associatedtype.EventLoopProxy" class="associatedtype">EventLoopProxy</a>: <a class="trait" href="trait.EventLoopProxy.html" title="trait maplibre::event_loop::EventLoopProxy">EventLoopProxy</a>&lt;ET&gt;; type <a href="#associatedtype.EventLoopProxy" class="associatedtype">EventLoopProxy</a>: <a class="trait" href="trait.EventLoopProxy.html" title="trait maplibre::event_loop::EventLoopProxy">EventLoopProxy</a>&lt;ET&gt;;
// Required methods // Required methods
fn <a href="#tymethod.run" class="fn">run</a>&lt;E&gt;(self, map: <a class="struct" href="../map/struct.Map.html" title="struct maplibre::map::Map">Map</a>&lt;E&gt;, max_frames: <a class="enum" href="https://doc.rust-lang.org/1.79.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.79.0/std/primitive.u64.html">u64</a>&gt;) fn <a href="#tymethod.run" class="fn">run</a>&lt;E&gt;(
self,
map: <a class="struct" href="../map/struct.Map.html" title="struct maplibre::map::Map">Map</a>&lt;E&gt;,
max_frames: <a class="enum" href="https://doc.rust-lang.org/1.79.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.79.0/std/primitive.u64.html">u64</a>&gt;
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.79.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.79.0/std/primitive.unit.html">()</a>, <a class="struct" href="struct.EventLoopError.html" title="struct maplibre::event_loop::EventLoopError">EventLoopError</a>&gt;
<span class="where">where E: <a class="trait" href="../environment/trait.Environment.html" title="trait maplibre::environment::Environment">Environment</a>, <span class="where">where E: <a class="trait" href="../environment/trait.Environment.html" title="trait maplibre::environment::Environment">Environment</a>,
&lt;E::<a class="associatedtype" href="../environment/trait.Environment.html#associatedtype.MapWindowConfig" title="type maplibre::environment::Environment::MapWindowConfig">MapWindowConfig</a> as <a class="trait" href="../window/trait.MapWindowConfig.html" title="trait maplibre::window::MapWindowConfig">MapWindowConfig</a>&gt;::<a class="associatedtype" href="../window/trait.MapWindowConfig.html#associatedtype.MapWindow" title="type maplibre::window::MapWindowConfig::MapWindow">MapWindow</a>: <a class="trait" href="../window/trait.HeadedMapWindow.html" title="trait maplibre::window::HeadedMapWindow">HeadedMapWindow</a></span>; &lt;E::<a class="associatedtype" href="../environment/trait.Environment.html#associatedtype.MapWindowConfig" title="type maplibre::environment::Environment::MapWindowConfig">MapWindowConfig</a> as <a class="trait" href="../window/trait.MapWindowConfig.html" title="trait maplibre::window::MapWindowConfig">MapWindowConfig</a>&gt;::<a class="associatedtype" href="../window/trait.MapWindowConfig.html#associatedtype.MapWindow" title="type maplibre::window::MapWindowConfig::MapWindow">MapWindow</a>: <a class="trait" href="../window/trait.HeadedMapWindow.html" title="trait maplibre::window::HeadedMapWindow">HeadedMapWindow</a></span>;
<span class="item-spacer"></span> fn <a href="#tymethod.create_proxy" class="fn">create_proxy</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="trait.EventLoop.html#associatedtype.EventLoopProxy" title="type maplibre::event_loop::EventLoop::EventLoopProxy">EventLoopProxy</a>; <span class="item-spacer"></span> fn <a href="#tymethod.create_proxy" class="fn">create_proxy</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="trait.EventLoop.html#associatedtype.EventLoopProxy" title="type maplibre::event_loop::EventLoop::EventLoopProxy">EventLoopProxy</a>;
}</code></pre><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><section id="associatedtype.EventLoopProxy" class="method"><a class="src rightside" href="../../src/maplibre/event_loop.rs.html#29">source</a><h4 class="code-header">type <a href="#associatedtype.EventLoopProxy" class="associatedtype">EventLoopProxy</a>: <a class="trait" href="trait.EventLoopProxy.html" title="trait maplibre::event_loop::EventLoopProxy">EventLoopProxy</a>&lt;ET&gt;</h4></section></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><section id="tymethod.run" class="method"><a class="src rightside" href="../../src/maplibre/event_loop.rs.html#31-34">source</a><h4 class="code-header">fn <a href="#tymethod.run" class="fn">run</a>&lt;E&gt;(self, map: <a class="struct" href="../map/struct.Map.html" title="struct maplibre::map::Map">Map</a>&lt;E&gt;, max_frames: <a class="enum" href="https://doc.rust-lang.org/1.79.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.79.0/std/primitive.u64.html">u64</a>&gt;)<div class="where">where }</code></pre><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><section id="associatedtype.EventLoopProxy" class="method"><a class="src rightside" href="../../src/maplibre/event_loop.rs.html#34">source</a><h4 class="code-header">type <a href="#associatedtype.EventLoopProxy" class="associatedtype">EventLoopProxy</a>: <a class="trait" href="trait.EventLoopProxy.html" title="trait maplibre::event_loop::EventLoopProxy">EventLoopProxy</a>&lt;ET&gt;</h4></section></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><section id="tymethod.run" class="method"><a class="src rightside" href="../../src/maplibre/event_loop.rs.html#36-39">source</a><h4 class="code-header">fn <a href="#tymethod.run" class="fn">run</a>&lt;E&gt;(
self,
map: <a class="struct" href="../map/struct.Map.html" title="struct maplibre::map::Map">Map</a>&lt;E&gt;,
max_frames: <a class="enum" href="https://doc.rust-lang.org/1.79.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.79.0/std/primitive.u64.html">u64</a>&gt;
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.79.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.79.0/std/primitive.unit.html">()</a>, <a class="struct" href="struct.EventLoopError.html" title="struct maplibre::event_loop::EventLoopError">EventLoopError</a>&gt;<div class="where">where
E: <a class="trait" href="../environment/trait.Environment.html" title="trait maplibre::environment::Environment">Environment</a>, E: <a class="trait" href="../environment/trait.Environment.html" title="trait maplibre::environment::Environment">Environment</a>,
&lt;E::<a class="associatedtype" href="../environment/trait.Environment.html#associatedtype.MapWindowConfig" title="type maplibre::environment::Environment::MapWindowConfig">MapWindowConfig</a> as <a class="trait" href="../window/trait.MapWindowConfig.html" title="trait maplibre::window::MapWindowConfig">MapWindowConfig</a>&gt;::<a class="associatedtype" href="../window/trait.MapWindowConfig.html#associatedtype.MapWindow" title="type maplibre::window::MapWindowConfig::MapWindow">MapWindow</a>: <a class="trait" href="../window/trait.HeadedMapWindow.html" title="trait maplibre::window::HeadedMapWindow">HeadedMapWindow</a>,</div></h4></section><section id="tymethod.create_proxy" class="method"><a class="src rightside" href="../../src/maplibre/event_loop.rs.html#36">source</a><h4 class="code-header">fn <a href="#tymethod.create_proxy" class="fn">create_proxy</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="trait.EventLoop.html#associatedtype.EventLoopProxy" title="type maplibre::event_loop::EventLoop::EventLoopProxy">EventLoopProxy</a></h4></section></div><h2 id="object-safety" class="section-header">Object Safety<a href="#object-safety" class="anchor">§</a></h2><div class="object-safety-info">This trait is <b>not</b> <a href="https://doc.rust-lang.org/1.79.0/reference/items/traits.html#object-safety">object safe</a>.</div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../trait.impl/maplibre/event_loop/trait.EventLoop.js" async></script></section></div></main></body></html> &lt;E::<a class="associatedtype" href="../environment/trait.Environment.html#associatedtype.MapWindowConfig" title="type maplibre::environment::Environment::MapWindowConfig">MapWindowConfig</a> as <a class="trait" href="../window/trait.MapWindowConfig.html" title="trait maplibre::window::MapWindowConfig">MapWindowConfig</a>&gt;::<a class="associatedtype" href="../window/trait.MapWindowConfig.html#associatedtype.MapWindow" title="type maplibre::window::MapWindowConfig::MapWindow">MapWindow</a>: <a class="trait" href="../window/trait.HeadedMapWindow.html" title="trait maplibre::window::HeadedMapWindow">HeadedMapWindow</a>,</div></h4></section><section id="tymethod.create_proxy" class="method"><a class="src rightside" href="../../src/maplibre/event_loop.rs.html#41">source</a><h4 class="code-header">fn <a href="#tymethod.create_proxy" class="fn">create_proxy</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="trait.EventLoop.html#associatedtype.EventLoopProxy" title="type maplibre::event_loop::EventLoop::EventLoopProxy">EventLoopProxy</a></h4></section></div><h2 id="object-safety" class="section-header">Object Safety<a href="#object-safety" class="anchor">§</a></h2><div class="object-safety-info">This trait is <b>not</b> <a href="https://doc.rust-lang.org/1.79.0/reference/items/traits.html#object-safety">object safe</a>.</div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../trait.impl/maplibre/event_loop/trait.EventLoop.js" async></script></section></div></main></body></html>

View File

@ -1,4 +1,4 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `EventLoopProxy` trait in crate `maplibre`."><title>EventLoopProxy in maplibre::event_loop - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-081576b923113409.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="maplibre" data-themes="" data-resource-suffix="" data-rustdoc-version="1.79.0 (129f3b996 2024-06-10)" data-channel="1.79.0" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../maplibre/index.html">maplibre</a><span class="version">0.1.0</span></h2></div><h2 class="location"><a href="#">EventLoopProxy</a></h2><div class="sidebar-elems"><section><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.send_event">send_event</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In maplibre::event_loop</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../maplibre/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type S or / to search, ? for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Trait <a href="../index.html">maplibre</a>::<wbr><a href="index.html">event_loop</a>::<wbr><a class="trait" href="#">EventLoopProxy</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../src/maplibre/event_loop.rs.html#24-26">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub trait EventLoopProxy&lt;T: 'static&gt; { <!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `EventLoopProxy` trait in crate `maplibre`."><title>EventLoopProxy in maplibre::event_loop - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-081576b923113409.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="maplibre" data-themes="" data-resource-suffix="" data-rustdoc-version="1.79.0 (129f3b996 2024-06-10)" data-channel="1.79.0" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../maplibre/index.html">maplibre</a><span class="version">0.1.0</span></h2></div><h2 class="location"><a href="#">EventLoopProxy</a></h2><div class="sidebar-elems"><section><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.send_event">send_event</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In maplibre::event_loop</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../maplibre/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type S or / to search, ? for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Trait <a href="../index.html">maplibre</a>::<wbr><a href="index.html">event_loop</a>::<wbr><a class="trait" href="#">EventLoopProxy</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../src/maplibre/event_loop.rs.html#29-31">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub trait EventLoopProxy&lt;T: 'static&gt; {
// Required method // Required method
fn <a href="#tymethod.send_event" class="fn">send_event</a>(&amp;self, event: T) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.79.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.79.0/std/primitive.unit.html">()</a>, <a class="enum" href="enum.SendEventError.html" title="enum maplibre::event_loop::SendEventError">SendEventError</a>&gt;; fn <a href="#tymethod.send_event" class="fn">send_event</a>(&amp;self, event: T) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.79.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.79.0/std/primitive.unit.html">()</a>, <a class="enum" href="enum.SendEventError.html" title="enum maplibre::event_loop::SendEventError">SendEventError</a>&gt;;
}</code></pre><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><section id="tymethod.send_event" class="method"><a class="src rightside" href="../../src/maplibre/event_loop.rs.html#25">source</a><h4 class="code-header">fn <a href="#tymethod.send_event" class="fn">send_event</a>(&amp;self, event: T) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.79.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.79.0/std/primitive.unit.html">()</a>, <a class="enum" href="enum.SendEventError.html" title="enum maplibre::event_loop::SendEventError">SendEventError</a>&gt;</h4></section></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../trait.impl/maplibre/event_loop/trait.EventLoopProxy.js" async></script></section></div></main></body></html> }</code></pre><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><section id="tymethod.send_event" class="method"><a class="src rightside" href="../../src/maplibre/event_loop.rs.html#30">source</a><h4 class="code-header">fn <a href="#tymethod.send_event" class="fn">send_event</a>(&amp;self, event: T) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.79.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.79.0/std/primitive.unit.html">()</a>, <a class="enum" href="enum.SendEventError.html" title="enum maplibre::event_loop::SendEventError">SendEventError</a>&gt;</h4></section></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../trait.impl/maplibre/event_loop/trait.EventLoopProxy.js" async></script></section></div></main></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -35,6 +35,11 @@
<a href="#35" id="35">35</a> <a href="#35" id="35">35</a>
<a href="#36" id="36">36</a> <a href="#36" id="36">36</a>
<a href="#37" id="37">37</a> <a href="#37" id="37">37</a>
<a href="#38" id="38">38</a>
<a href="#39" id="39">39</a>
<a href="#40" id="40">40</a>
<a href="#41" id="41">41</a>
<a href="#42" id="42">42</a>
</pre></div><pre class="rust"><code><span class="kw">use </span>thiserror::Error; </pre></div><pre class="rust"><code><span class="kw">use </span>thiserror::Error;
<span class="kw">use crate</span>::{ <span class="kw">use crate</span>::{
@ -58,6 +63,11 @@
</span>Closed, </span>Closed,
} }
<span class="doccomment">/// When sending events to an event loop errors can occur.
</span><span class="attr">#[derive(Error, Debug)]
#[error(<span class="string">"event loop creation failed"</span>)]
</span><span class="kw">pub struct </span>EventLoopError;
<span class="kw">pub trait </span>EventLoopProxy&lt;T: <span class="lifetime">'static</span>&gt; { <span class="kw">pub trait </span>EventLoopProxy&lt;T: <span class="lifetime">'static</span>&gt; {
<span class="kw">fn </span>send_event(<span class="kw-2">&amp;</span><span class="self">self</span>, event: T) -&gt; <span class="prelude-ty">Result</span>&lt;(), SendEventError&gt;; <span class="kw">fn </span>send_event(<span class="kw-2">&amp;</span><span class="self">self</span>, event: T) -&gt; <span class="prelude-ty">Result</span>&lt;(), SendEventError&gt;;
} }
@ -65,7 +75,7 @@
<span class="kw">pub trait </span>EventLoop&lt;ET: <span class="lifetime">'static </span>+ PartialEq&gt; { <span class="kw">pub trait </span>EventLoop&lt;ET: <span class="lifetime">'static </span>+ PartialEq&gt; {
<span class="kw">type </span>EventLoopProxy: EventLoopProxy&lt;ET&gt;; <span class="kw">type </span>EventLoopProxy: EventLoopProxy&lt;ET&gt;;
<span class="kw">fn </span>run&lt;E&gt;(<span class="self">self</span>, map: Map&lt;E&gt;, max_frames: <span class="prelude-ty">Option</span>&lt;u64&gt;) <span class="kw">fn </span>run&lt;E&gt;(<span class="self">self</span>, map: Map&lt;E&gt;, max_frames: <span class="prelude-ty">Option</span>&lt;u64&gt;) -&gt; <span class="prelude-ty">Result</span>&lt;(), EventLoopError&gt;
<span class="kw">where <span class="kw">where
</span>E: Environment, </span>E: Environment,
&lt;E::MapWindowConfig <span class="kw">as </span>MapWindowConfig&gt;::MapWindow: HeadedMapWindow; &lt;E::MapWindowConfig <span class="kw">as </span>MapWindowConfig&gt;::MapWindow: HeadedMapWindow;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long