mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Deploying to gh-pages from @ maplibre/maplibre-rs@f0f244ee65 🚀
This commit is contained in:
parent
ec7d393c8e
commit
6119e5c5fb
File diff suppressed because one or more lines are too long
@ -11,7 +11,7 @@
|
||||
Render(<a class="enum" href="enum.RenderError.html" title="enum maplibre::error::RenderError">RenderError</a>),
|
||||
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Enumeration of errors which can happen during the operation of the library.</p>
|
||||
</div></details><h2 id="variants" class="variants small-section-header">Variants<a href="#variants" class="anchor"></a></h2><h3 id="variant.Schedule" class="variant small-section-header"><a href="#variant.Schedule" class="anchor field"></a><code>Schedule</code></h3><h3 id="variant.Network" class="variant small-section-header"><a href="#variant.Network" class="anchor field"></a><code>Network(<a class="struct" href="https://doc.rust-lang.org/1.60.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>)</code></h3><h3 id="variant.Tesselation" class="variant small-section-header"><a href="#variant.Tesselation" class="anchor field"></a><code>Tesselation(TessellationError)</code></h3><h3 id="variant.Render" class="variant small-section-header"><a href="#variant.Render" class="anchor field"></a><code>Render(<a class="enum" href="enum.RenderError.html" title="enum maplibre::error::RenderError">RenderError</a>)</code></h3><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/maplibre/error.rs.html#33">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.60.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="enum.Error.html" title="enum maplibre::error::Error">Error</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/maplibre/error.rs.html#33">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.60.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/1.60.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/1.60.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.60.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CError%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/maplibre/platform/noweb/http_client.rs.html#13-17">source</a></span><a href="#impl-From%3CError%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.60.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="https://docs.rs/reqwest/0.11.10/reqwest/error/struct.Error.html" title="struct reqwest::error::Error">Error</a>> for <a class="enum" href="enum.Error.html" title="enum maplibre::error::Error">Error</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-3" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/maplibre/platform/noweb/http_client.rs.html#14-16">source</a></span><a href="#method.from-3" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.60.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(err: <a class="struct" href="https://docs.rs/reqwest/0.11.10/reqwest/error/struct.Error.html" title="struct reqwest::error::Error">Error</a>) -> Self</h4></section></summary><div class='docblock'><p>Performs the conversion.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CError%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/maplibre/platform/noweb/http_client.rs.html#13-17">source</a></span><a href="#impl-From%3CError%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.60.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="https://docs.rs/reqwest/0.11.11/reqwest/error/struct.Error.html" title="struct reqwest::error::Error">Error</a>> for <a class="enum" href="enum.Error.html" title="enum maplibre::error::Error">Error</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-3" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/maplibre/platform/noweb/http_client.rs.html#14-16">source</a></span><a href="#method.from-3" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.60.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(err: <a class="struct" href="https://docs.rs/reqwest/0.11.11/reqwest/error/struct.Error.html" title="struct reqwest::error::Error">Error</a>) -> Self</h4></section></summary><div class='docblock'><p>Performs the conversion.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CError%3E-1" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/maplibre/platform/noweb/http_client.rs.html#19-23">source</a></span><a href="#impl-From%3CError%3E-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.60.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><Error> for <a class="enum" href="enum.Error.html" title="enum maplibre::error::Error">Error</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-4" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/maplibre/platform/noweb/http_client.rs.html#20-22">source</a></span><a href="#method.from-4" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.60.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(err: Error) -> Self</h4></section></summary><div class='docblock'><p>Performs the conversion.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CSendError%3CT%3E%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/maplibre/error.rs.html#53-57">source</a></span><a href="#impl-From%3CSendError%3CT%3E%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.60.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="https://doc.rust-lang.org/1.60.0/std/sync/mpsc/struct.SendError.html" title="struct std::sync::mpsc::SendError">SendError</a><T>> for <a class="enum" href="enum.Error.html" title="enum maplibre::error::Error">Error</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-2" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/maplibre/error.rs.html#54-56">source</a></span><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.60.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(_e: <a class="struct" href="https://doc.rust-lang.org/1.60.0/std/sync/mpsc/struct.SendError.html" title="struct std::sync::mpsc::SendError">SendError</a><T>) -> Self</h4></section></summary><div class='docblock'><p>Performs the conversion.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CSurfaceError%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/maplibre/error.rs.html#41-45">source</a></span><a href="#impl-From%3CSurfaceError%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.60.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><SurfaceError> for <a class="enum" href="enum.Error.html" title="enum maplibre::error::Error">Error</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/maplibre/error.rs.html#42-44">source</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.60.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(e: SurfaceError) -> Self</h4></section></summary><div class='docblock'><p>Performs the conversion.</p>
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
</nav>
|
||||
<nav class="sidebar"><a class="sidebar-logo" href="../../../maplibre/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div>
|
||||
</a><h2 class="location"><a href="#">Head</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#variants">Variants</a></h3><ul><li><a href="#variant.Headed">Headed</a></li><li><a href="#variant.Headless">Headless</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul><li><a href="#impl-RefUnwindSafe">!RefUnwindSafe</a></li><li><a href="#impl-Send">Send</a></li><li><a href="#impl-Sync">Sync</a></li><li><a href="#impl-Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe">!UnwindSafe</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><ul><li><a href="#impl-Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a></li><li><a href="#impl-Downcast">Downcast</a></li><li><a href="#impl-Downcast%3CT%3E">Downcast<T></a></li><li><a href="#impl-DowncastSync">DowncastSync</a></li><li><a href="#impl-From%3CT%3E">From<T></a></li><li><a href="#impl-Instrument">Instrument</a></li><li><a href="#impl-Into%3CU%3E">Into<U></a></li><li><a href="#impl-Same%3CT%3E">Same<T></a></li><li><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E">TryInto<U></a></li><li><a href="#impl-Upcast%3CT%3E">Upcast<T></a></li><li><a href="#impl-WithSubscriber">WithSubscriber</a></li></ul></div></section><h2 class="location"><a href="index.html">In maplibre::render::resource</a></h2><div id="sidebar-vars" data-name="Head" data-ty="enum" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../maplibre/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Enum <a href="../../index.html">maplibre</a>::<wbr><a href="../index.html">render</a>::<wbr><a href="index.html">resource</a>::<wbr><a class="enum" href="#">Head</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/maplibre/render/resource/surface.rs.html#112-115">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust enum"><code>pub enum Head {
|
||||
<h1 class="fqn"><span class="in-band">Enum <a href="../../index.html">maplibre</a>::<wbr><a href="../index.html">render</a>::<wbr><a href="index.html">resource</a>::<wbr><a class="enum" href="#">Head</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/maplibre/render/resource/surface.rs.html#117-120">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust enum"><code>pub enum Head {
|
||||
Headed(<a class="struct" href="surface/struct.WindowHead.html" title="struct maplibre::render::resource::surface::WindowHead">WindowHead</a>),
|
||||
Headless(<a class="struct" href="https://doc.rust-lang.org/1.60.0/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><<a class="struct" href="surface/struct.BufferedTextureHead.html" title="struct maplibre::render::resource::surface::BufferedTextureHead">BufferedTextureHead</a>>),
|
||||
}</code></pre></div><h2 id="variants" class="variants small-section-header">Variants<a href="#variants" class="anchor"></a></h2><h3 id="variant.Headed" class="variant small-section-header"><a href="#variant.Headed" class="anchor field"></a><code>Headed(<a class="struct" href="surface/struct.WindowHead.html" title="struct maplibre::render::resource::surface::WindowHead">WindowHead</a>)</code></h3><h3 id="variant.Headless" class="variant small-section-header"><a href="#variant.Headless" class="anchor field"></a><code>Headless(<a class="struct" href="https://doc.rust-lang.org/1.60.0/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><<a class="struct" href="surface/struct.BufferedTextureHead.html" title="struct maplibre::render::resource::surface::BufferedTextureHead">BufferedTextureHead</a>>)</code></h3><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><section id="impl-RefUnwindSafe" class="impl has-srclink"><a href="#impl-RefUnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl !<a class="trait" href="https://doc.rust-lang.org/1.60.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="enum" href="surface/enum.Head.html" title="enum maplibre::render::resource::surface::Head">Head</a></h3></section><section id="impl-Send" class="impl has-srclink"><a href="#impl-Send" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.60.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="enum" href="surface/enum.Head.html" title="enum maplibre::render::resource::surface::Head">Head</a></h3></section><section id="impl-Sync" class="impl has-srclink"><a href="#impl-Sync" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.60.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="enum" href="surface/enum.Head.html" title="enum maplibre::render::resource::surface::Head">Head</a></h3></section><section id="impl-Unpin" class="impl has-srclink"><a href="#impl-Unpin" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.60.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="enum" href="surface/enum.Head.html" title="enum maplibre::render::resource::surface::Head">Head</a></h3></section><section id="impl-UnwindSafe" class="impl has-srclink"><a href="#impl-UnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl !<a class="trait" href="https://doc.rust-lang.org/1.60.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="enum" href="surface/enum.Head.html" title="enum maplibre::render::resource::surface::Head">Head</a></h3></section></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Any" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.60.0/src/core/any.rs.html#132-136">source</a></span><a href="#impl-Any" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.60.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.60.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.60.0/src/core/any.rs.html#133">source</a></span><a href="#method.type_id" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.60.0/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.60.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.60.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
</nav>
|
||||
<nav class="sidebar"><a class="sidebar-logo" href="../../../maplibre/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div>
|
||||
</a><h2 class="location"><a href="#">BufferedTextureHead</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#fields">Fields</a></h3><ul><li><a href="#structfield.buffer_dimensions">buffer_dimensions</a></li><li><a href="#structfield.output_buffer">output_buffer</a></li><li><a href="#structfield.texture">texture</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul><li><a href="#impl-RefUnwindSafe">!RefUnwindSafe</a></li><li><a href="#impl-Send">Send</a></li><li><a href="#impl-Sync">Sync</a></li><li><a href="#impl-Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe">!UnwindSafe</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><ul><li><a href="#impl-Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a></li><li><a href="#impl-Downcast">Downcast</a></li><li><a href="#impl-Downcast%3CT%3E">Downcast<T></a></li><li><a href="#impl-DowncastSync">DowncastSync</a></li><li><a href="#impl-From%3CT%3E">From<T></a></li><li><a href="#impl-Instrument">Instrument</a></li><li><a href="#impl-Into%3CU%3E">Into<U></a></li><li><a href="#impl-Same%3CT%3E">Same<T></a></li><li><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E">TryInto<U></a></li><li><a href="#impl-Upcast%3CT%3E">Upcast<T></a></li><li><a href="#impl-WithSubscriber">WithSubscriber</a></li></ul></div></section><h2 class="location"><a href="index.html">In maplibre::render::resource</a></h2><div id="sidebar-vars" data-name="BufferedTextureHead" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../maplibre/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Struct <a href="../../index.html">maplibre</a>::<wbr><a href="../index.html">render</a>::<wbr><a href="index.html">resource</a>::<wbr><a class="struct" href="#">BufferedTextureHead</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/maplibre/render/resource/surface.rs.html#57-61">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust struct"><code>pub struct BufferedTextureHead {
|
||||
<h1 class="fqn"><span class="in-band">Struct <a href="../../index.html">maplibre</a>::<wbr><a href="../index.html">render</a>::<wbr><a href="index.html">resource</a>::<wbr><a class="struct" href="#">BufferedTextureHead</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/maplibre/render/resource/surface.rs.html#62-66">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust struct"><code>pub struct BufferedTextureHead {
|
||||
pub texture: Texture,
|
||||
pub output_buffer: Buffer,
|
||||
pub buffer_dimensions: <a class="struct" href="surface/struct.BufferDimensions.html" title="struct maplibre::render::resource::surface::BufferDimensions">BufferDimensions</a>,
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
||||
</nav>
|
||||
<nav class="sidebar"><a class="sidebar-logo" href="../../../../maplibre/index.html"><div class="logo-container"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></div>
|
||||
</a><h2 class="location"><a href="#">Head</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#variants">Variants</a></h3><ul><li><a href="#variant.Headed">Headed</a></li><li><a href="#variant.Headless">Headless</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul><li><a href="#impl-RefUnwindSafe">!RefUnwindSafe</a></li><li><a href="#impl-Send">Send</a></li><li><a href="#impl-Sync">Sync</a></li><li><a href="#impl-Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe">!UnwindSafe</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><ul><li><a href="#impl-Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a></li><li><a href="#impl-Downcast">Downcast</a></li><li><a href="#impl-Downcast%3CT%3E">Downcast<T></a></li><li><a href="#impl-DowncastSync">DowncastSync</a></li><li><a href="#impl-From%3CT%3E">From<T></a></li><li><a href="#impl-Instrument">Instrument</a></li><li><a href="#impl-Into%3CU%3E">Into<U></a></li><li><a href="#impl-Same%3CT%3E">Same<T></a></li><li><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E">TryInto<U></a></li><li><a href="#impl-Upcast%3CT%3E">Upcast<T></a></li><li><a href="#impl-WithSubscriber">WithSubscriber</a></li></ul></div></section><h2 class="location"><a href="index.html">In maplibre::render::resource::surface</a></h2><div id="sidebar-vars" data-name="Head" data-ty="enum" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../../maplibre/index.html"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Enum <a href="../../../index.html">maplibre</a>::<wbr><a href="../../index.html">render</a>::<wbr><a href="../index.html">resource</a>::<wbr><a href="index.html">surface</a>::<wbr><a class="enum" href="#">Head</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../../src/maplibre/render/resource/surface.rs.html#112-115">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust enum"><code>pub enum Head {
|
||||
<h1 class="fqn"><span class="in-band">Enum <a href="../../../index.html">maplibre</a>::<wbr><a href="../../index.html">render</a>::<wbr><a href="../index.html">resource</a>::<wbr><a href="index.html">surface</a>::<wbr><a class="enum" href="#">Head</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../../src/maplibre/render/resource/surface.rs.html#117-120">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust enum"><code>pub enum Head {
|
||||
Headed(<a class="struct" href="struct.WindowHead.html" title="struct maplibre::render::resource::surface::WindowHead">WindowHead</a>),
|
||||
Headless(<a class="struct" href="https://doc.rust-lang.org/1.60.0/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><<a class="struct" href="struct.BufferedTextureHead.html" title="struct maplibre::render::resource::surface::BufferedTextureHead">BufferedTextureHead</a>>),
|
||||
}</code></pre></div><h2 id="variants" class="variants small-section-header">Variants<a href="#variants" class="anchor"></a></h2><h3 id="variant.Headed" class="variant small-section-header"><a href="#variant.Headed" class="anchor field"></a><code>Headed(<a class="struct" href="struct.WindowHead.html" title="struct maplibre::render::resource::surface::WindowHead">WindowHead</a>)</code></h3><h3 id="variant.Headless" class="variant small-section-header"><a href="#variant.Headless" class="anchor field"></a><code>Headless(<a class="struct" href="https://doc.rust-lang.org/1.60.0/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><<a class="struct" href="struct.BufferedTextureHead.html" title="struct maplibre::render::resource::surface::BufferedTextureHead">BufferedTextureHead</a>>)</code></h3><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><section id="impl-RefUnwindSafe" class="impl has-srclink"><a href="#impl-RefUnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl !<a class="trait" href="https://doc.rust-lang.org/1.60.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="enum" href="enum.Head.html" title="enum maplibre::render::resource::surface::Head">Head</a></h3></section><section id="impl-Send" class="impl has-srclink"><a href="#impl-Send" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.60.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="enum" href="enum.Head.html" title="enum maplibre::render::resource::surface::Head">Head</a></h3></section><section id="impl-Sync" class="impl has-srclink"><a href="#impl-Sync" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.60.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="enum" href="enum.Head.html" title="enum maplibre::render::resource::surface::Head">Head</a></h3></section><section id="impl-Unpin" class="impl has-srclink"><a href="#impl-Unpin" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.60.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="enum" href="enum.Head.html" title="enum maplibre::render::resource::surface::Head">Head</a></h3></section><section id="impl-UnwindSafe" class="impl has-srclink"><a href="#impl-UnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl !<a class="trait" href="https://doc.rust-lang.org/1.60.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="enum" href="enum.Head.html" title="enum maplibre::render::resource::surface::Head">Head</a></h3></section></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Any" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.60.0/src/core/any.rs.html#132-136">source</a></span><a href="#impl-Any" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.60.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.60.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.60.0/src/core/any.rs.html#133">source</a></span><a href="#method.type_id" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.60.0/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.60.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.60.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
</nav>
|
||||
<nav class="sidebar"><a class="sidebar-logo" href="../../../../maplibre/index.html"><div class="logo-container"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></div>
|
||||
</a><h2 class="location"><a href="#">Module surface</a></h2><div class="sidebar-elems"><section><div class="block"><ul><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li></ul></div></section><div id="sidebar-vars" data-name="surface" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../../maplibre/index.html"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Module <a href="../../../index.html">maplibre</a>::<wbr><a href="../../index.html">render</a>::<wbr><a href="../index.html">resource</a>::<wbr><a class="mod" href="#">surface</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../../src/maplibre/render/resource/surface.rs.html#1-277">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Utilities for handling surfaces which can be either headless or headed. A headed surface has
|
||||
<h1 class="fqn"><span class="in-band">Module <a href="../../../index.html">maplibre</a>::<wbr><a href="../../index.html">render</a>::<wbr><a href="../index.html">resource</a>::<wbr><a class="mod" href="#">surface</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../../src/maplibre/render/resource/surface.rs.html#1-275">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Utilities for handling surfaces which can be either headless or headed. A headed surface has
|
||||
a handle to a window. A headless surface renders to a texture.</p>
|
||||
</div></details><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2>
|
||||
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.BufferDimensions.html" title="maplibre::render::resource::surface::BufferDimensions struct">BufferDimensions</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.BufferedTextureHead.html" title="maplibre::render::resource::surface::BufferedTextureHead struct">BufferedTextureHead</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Surface.html" title="maplibre::render::resource::surface::Surface struct">Surface</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.WindowHead.html" title="maplibre::render::resource::surface::WindowHead struct">WindowHead</a></div><div class="item-right docblock-short"></div></div></div><h2 id="enums" class="small-section-header"><a href="#enums">Enums</a></h2>
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
</nav>
|
||||
<nav class="sidebar"><a class="sidebar-logo" href="../../../../maplibre/index.html"><div class="logo-container"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></div>
|
||||
</a><h2 class="location"><a href="#">BufferedTextureHead</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#fields">Fields</a></h3><ul><li><a href="#structfield.buffer_dimensions">buffer_dimensions</a></li><li><a href="#structfield.output_buffer">output_buffer</a></li><li><a href="#structfield.texture">texture</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul><li><a href="#impl-RefUnwindSafe">!RefUnwindSafe</a></li><li><a href="#impl-Send">Send</a></li><li><a href="#impl-Sync">Sync</a></li><li><a href="#impl-Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe">!UnwindSafe</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><ul><li><a href="#impl-Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a></li><li><a href="#impl-Downcast">Downcast</a></li><li><a href="#impl-Downcast%3CT%3E">Downcast<T></a></li><li><a href="#impl-DowncastSync">DowncastSync</a></li><li><a href="#impl-From%3CT%3E">From<T></a></li><li><a href="#impl-Instrument">Instrument</a></li><li><a href="#impl-Into%3CU%3E">Into<U></a></li><li><a href="#impl-Same%3CT%3E">Same<T></a></li><li><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E">TryInto<U></a></li><li><a href="#impl-Upcast%3CT%3E">Upcast<T></a></li><li><a href="#impl-WithSubscriber">WithSubscriber</a></li></ul></div></section><h2 class="location"><a href="index.html">In maplibre::render::resource::surface</a></h2><div id="sidebar-vars" data-name="BufferedTextureHead" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../../maplibre/index.html"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Struct <a href="../../../index.html">maplibre</a>::<wbr><a href="../../index.html">render</a>::<wbr><a href="../index.html">resource</a>::<wbr><a href="index.html">surface</a>::<wbr><a class="struct" href="#">BufferedTextureHead</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../../src/maplibre/render/resource/surface.rs.html#57-61">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust struct"><code>pub struct BufferedTextureHead {
|
||||
<h1 class="fqn"><span class="in-band">Struct <a href="../../../index.html">maplibre</a>::<wbr><a href="../../index.html">render</a>::<wbr><a href="../index.html">resource</a>::<wbr><a href="index.html">surface</a>::<wbr><a class="struct" href="#">BufferedTextureHead</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../../src/maplibre/render/resource/surface.rs.html#62-66">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust struct"><code>pub struct BufferedTextureHead {
|
||||
pub texture: Texture,
|
||||
pub output_buffer: Buffer,
|
||||
pub buffer_dimensions: <a class="struct" href="struct.BufferDimensions.html" title="struct maplibre::render::resource::surface::BufferDimensions">BufferDimensions</a>,
|
||||
|
||||
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
@ -69,8 +69,8 @@
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3COklch%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3COklch%3CComponentTy%3E%3E%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.60.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.Alpha.html" title="struct maplibre::style::Alpha">Alpha</a><<a class="struct" href="struct.Oklch.html" title="struct maplibre::style::Oklch">Oklch</a><ComponentTy>>> for <a class="struct" href="struct.Oklch.html" title="struct maplibre::style::Oklch">Oklch</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.60.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.60.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-47" class="method trait-impl has-srclink"><a href="#method.from-47" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.60.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(col_alpha: <a class="struct" href="struct.Alpha.html" title="struct maplibre::style::Alpha">Alpha</a><<a class="struct" href="struct.Oklch.html" title="struct maplibre::style::Oklch">Oklch</a><ComponentTy>>) -> <a class="struct" href="struct.Oklch.html" title="struct maplibre::style::Oklch">Oklch</a><ComponentTy></h4></section></summary><div class='docblock'><p>Performs the conversion.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CRec709%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CRec709%3CComponentTy%3E%3E%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.60.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.Alpha.html" title="struct maplibre::style::Alpha">Alpha</a><<a class="struct" href="struct.Rec709.html" title="struct maplibre::style::Rec709">Rec709</a><ComponentTy>>> for <a class="struct" href="struct.Rec709.html" title="struct maplibre::style::Rec709">Rec709</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.60.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.60.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-13" class="method trait-impl has-srclink"><a href="#method.from-13" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.60.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(col_alpha: <a class="struct" href="struct.Alpha.html" title="struct maplibre::style::Alpha">Alpha</a><<a class="struct" href="struct.Rec709.html" title="struct maplibre::style::Rec709">Rec709</a><ComponentTy>>) -> <a class="struct" href="struct.Rec709.html" title="struct maplibre::style::Rec709">Rec709</a><ComponentTy></h4></section></summary><div class='docblock'><p>Performs the conversion.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CColor%3E" class="impl has-srclink"><a href="#impl-From%3CColor%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.60.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><Color> for <a class="struct" href="struct.Alpha.html" title="struct maplibre::style::Alpha">Alpha</a><<a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><<a class="primitive" href="https://doc.rust-lang.org/1.60.0/std/primitive.u8.html">u8</a>>></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-54" class="method trait-impl has-srclink"><a href="#method.from-54" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.60.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(c: Color) -> <a class="struct" href="struct.Alpha.html" title="struct maplibre::style::Alpha">Alpha</a><<a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><<a class="primitive" href="https://doc.rust-lang.org/1.60.0/std/primitive.u8.html">u8</a>>></h4></section></summary><div class='docblock'><p>Performs the conversion.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CColor%3E-1" class="impl has-srclink"><a href="#impl-From%3CColor%3E-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.60.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><Color> for <a class="struct" href="struct.Alpha.html" title="struct maplibre::style::Alpha">Alpha</a><<a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><<a class="primitive" href="https://doc.rust-lang.org/1.60.0/std/primitive.f32.html">f32</a>>></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-55" class="method trait-impl has-srclink"><a href="#method.from-55" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.60.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(c: Color) -> <a class="struct" href="struct.Alpha.html" title="struct maplibre::style::Alpha">Alpha</a><<a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><<a class="primitive" href="https://doc.rust-lang.org/1.60.0/std/primitive.f32.html">f32</a>>></h4></section></summary><div class='docblock'><p>Performs the conversion.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CColor%3E-2" class="impl has-srclink"><a href="#impl-From%3CColor%3E-2" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.60.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><Color> for <a class="struct" href="struct.Alpha.html" title="struct maplibre::style::Alpha">Alpha</a><<a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><<a class="primitive" href="https://doc.rust-lang.org/1.60.0/std/primitive.f64.html">f64</a>>></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-56" class="method trait-impl has-srclink"><a href="#method.from-56" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.60.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(c: Color) -> <a class="struct" href="struct.Alpha.html" title="struct maplibre::style::Alpha">Alpha</a><<a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><<a class="primitive" href="https://doc.rust-lang.org/1.60.0/std/primitive.f64.html">f64</a>>></h4></section></summary><div class='docblock'><p>Performs the conversion.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CColor%3E-1" class="impl has-srclink"><a href="#impl-From%3CColor%3E-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.60.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><Color> for <a class="struct" href="struct.Alpha.html" title="struct maplibre::style::Alpha">Alpha</a><<a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><<a class="primitive" href="https://doc.rust-lang.org/1.60.0/std/primitive.f64.html">f64</a>>></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-55" class="method trait-impl has-srclink"><a href="#method.from-55" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.60.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(c: Color) -> <a class="struct" href="struct.Alpha.html" title="struct maplibre::style::Alpha">Alpha</a><<a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><<a class="primitive" href="https://doc.rust-lang.org/1.60.0/std/primitive.f64.html">f64</a>>></h4></section></summary><div class='docblock'><p>Performs the conversion.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CColor%3E-2" class="impl has-srclink"><a href="#impl-From%3CColor%3E-2" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.60.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><Color> for <a class="struct" href="struct.Alpha.html" title="struct maplibre::style::Alpha">Alpha</a><<a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><<a class="primitive" href="https://doc.rust-lang.org/1.60.0/std/primitive.f32.html">f32</a>>></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-56" class="method trait-impl has-srclink"><a href="#method.from-56" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.60.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(c: Color) -> <a class="struct" href="struct.Alpha.html" title="struct maplibre::style::Alpha">Alpha</a><<a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><<a class="primitive" href="https://doc.rust-lang.org/1.60.0/std/primitive.f32.html">f32</a>>></h4></section></summary><div class='docblock'><p>Performs the conversion.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Hash" class="impl has-srclink"><a href="#impl-Hash" class="anchor"></a><h3 class="code-header in-band">impl<ColorTy> <a class="trait" href="https://doc.rust-lang.org/1.60.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="struct.Alpha.html" title="struct maplibre::style::Alpha">Alpha</a><ColorTy> <span class="where fmt-newline">where<br> ColorTy: <a class="trait" href="https://doc.rust-lang.org/1.60.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="trait.ColorStruct.html" title="trait maplibre::style::ColorStruct">ColorStruct</a>,<br> <ColorTy as <a class="trait" href="trait.ColorStruct.html" title="trait maplibre::style::ColorStruct">ColorStruct</a>>::<a class="associatedtype" href="trait.ColorStruct.html#associatedtype.ComponentTy" title="type maplibre::style::ColorStruct::ComponentTy">ComponentTy</a>: <a class="trait" href="https://doc.rust-lang.org/1.60.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.hash" class="method trait-impl has-srclink"><a href="#method.hash" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.60.0/core/hash/trait.Hash.html#tymethod.hash" class="fnname">hash</a><__H>(&self, state: <a class="primitive" href="https://doc.rust-lang.org/1.60.0/std/primitive.reference.html">&mut </a>__H) <span class="where fmt-newline">where<br> __H: <a class="trait" href="https://doc.rust-lang.org/1.60.0/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>, </span></h4></section></summary><div class='docblock'><p>Feeds this value into the given <a href="https://doc.rust-lang.org/1.60.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.60.0/core/hash/trait.Hash.html#tymethod.hash">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.hash_slice" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.3.0">1.3.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.60.0/src/core/hash/mod.rs.html#237-239">source</a></span><a href="#method.hash_slice" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.60.0/core/hash/trait.Hash.html#method.hash_slice" class="fnname">hash_slice</a><H>(data: <a class="primitive" href="https://doc.rust-lang.org/1.60.0/std/primitive.slice.html">&[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/1.60.0/std/primitive.reference.html">&mut </a>H) <span class="where fmt-newline">where<br> H: <a class="trait" href="https://doc.rust-lang.org/1.60.0/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>, </span></h4></section></summary><div class='docblock'><p>Feeds a slice of this type into the given <a href="https://doc.rust-lang.org/1.60.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.60.0/core/hash/trait.Hash.html#method.hash_slice">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Into%3C%5BComponentTy%3B%204%5D%3E" class="impl has-srclink"><a href="#impl-Into%3C%5BComponentTy%3B%204%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.60.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="primitive" href="https://doc.rust-lang.org/1.60.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.60.0/std/primitive.array.html">; 4]</a>> for <a class="struct" href="struct.Alpha.html" title="struct maplibre::style::Alpha">Alpha</a><<a class="struct" href="struct.EncodedBt2020.html" title="struct maplibre::style::EncodedBt2020">EncodedBt2020</a><ComponentTy>> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.60.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.60.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into" class="method trait-impl has-srclink"><a href="#method.into" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.60.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.60.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.60.0/std/primitive.array.html">; 4]</a></h4></section></summary><div class='docblock'><p>Performs the conversion.</p>
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -278,8 +278,6 @@
|
||||
<span id="273">273</span>
|
||||
<span id="274">274</span>
|
||||
<span id="275">275</span>
|
||||
<span id="276">276</span>
|
||||
<span id="277">277</span>
|
||||
</pre><pre class="rust"><code><span class="doccomment">//! Utilities for handling surfaces which can be either headless or headed. A headed surface has</span>
|
||||
<span class="doccomment">//! a handle to a window. A headless surface renders to a texture.</span>
|
||||
|
||||
@ -321,6 +319,11 @@
|
||||
}
|
||||
|
||||
<span class="kw">impl</span> <span class="ident">WindowHead</span> {
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">resize_and_configure</span>(<span class="kw-2">&mut</span> <span class="self">self</span>, <span class="ident">width</span>: <span class="ident">u32</span>, <span class="ident">height</span>: <span class="ident">u32</span>, <span class="ident">device</span>: <span class="kw-2">&</span><span class="ident">wgpu::Device</span>) {
|
||||
<span class="self">self</span>.<span class="ident">surface_config</span>.<span class="ident">height</span> <span class="op">=</span> <span class="ident">width</span>;
|
||||
<span class="self">self</span>.<span class="ident">surface_config</span>.<span class="ident">width</span> <span class="op">=</span> <span class="ident">height</span>;
|
||||
<span class="self">self</span>.<span class="ident">surface</span>.<span class="ident">configure</span>(<span class="ident">device</span>, <span class="kw-2">&</span><span class="self">self</span>.<span class="ident">surface_config</span>);
|
||||
}
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">configure</span>(<span class="kw-2">&</span><span class="self">self</span>, <span class="ident">device</span>: <span class="kw-2">&</span><span class="ident">wgpu::Device</span>) {
|
||||
<span class="self">self</span>.<span class="ident">surface</span>.<span class="ident">configure</span>(<span class="ident">device</span>, <span class="kw-2">&</span><span class="self">self</span>.<span class="ident">surface_config</span>);
|
||||
}
|
||||
@ -507,20 +510,13 @@
|
||||
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">resize</span>(<span class="kw-2">&mut</span> <span class="self">self</span>, <span class="ident">width</span>: <span class="ident">u32</span>, <span class="ident">height</span>: <span class="ident">u32</span>) {
|
||||
<span class="self">self</span>.<span class="ident">size</span> <span class="op">=</span> <span class="ident">WindowSize::new</span>(<span class="ident">width</span>, <span class="ident">height</span>).<span class="ident">expect</span>(<span class="string">"Invalid size for resizing the surface."</span>);
|
||||
<span class="kw">match</span> <span class="kw-2">&mut</span> <span class="self">self</span>.<span class="ident">head</span> {
|
||||
<span class="ident">Head::Headed</span>(<span class="ident">window</span>) => {
|
||||
<span class="ident">window</span>.<span class="ident">surface_config</span>.<span class="ident">height</span> <span class="op">=</span> <span class="ident">height</span>;
|
||||
<span class="ident">window</span>.<span class="ident">surface_config</span>.<span class="ident">width</span> <span class="op">=</span> <span class="ident">width</span>;
|
||||
}
|
||||
<span class="ident">Head::Headless</span>(<span class="kw">_</span>) => {}
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">reconfigure</span>(<span class="kw-2">&mut</span> <span class="self">self</span>, <span class="ident">device</span>: <span class="kw-2">&</span><span class="ident">wgpu::Device</span>) {
|
||||
<span class="kw">match</span> <span class="kw-2">&mut</span> <span class="self">self</span>.<span class="ident">head</span> {
|
||||
<span class="ident">Head::Headed</span>(<span class="ident">window</span>) => {
|
||||
<span class="kw">if</span> <span class="ident">window</span>.<span class="ident">has_changed</span>(<span class="kw-2">&</span>(<span class="self">self</span>.<span class="ident">size</span>.<span class="ident">width</span>(), <span class="self">self</span>.<span class="ident">size</span>.<span class="ident">height</span>())) {
|
||||
<span class="ident">window</span>.<span class="ident">configure</span>(<span class="ident">device</span>);
|
||||
<span class="ident">window</span>.<span class="ident">resize_and_configure</span>(<span class="self">self</span>.<span class="ident">size</span>.<span class="ident">height</span>(), <span class="self">self</span>.<span class="ident">size</span>.<span class="ident">width</span>(), <span class="ident">device</span>);
|
||||
}
|
||||
}
|
||||
<span class="ident">Head::Headless</span>(<span class="kw">_</span>) => {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user