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@99a74d35df 🚀
This commit is contained in:
parent
30a198fd97
commit
205afbeb32
File diff suppressed because one or more lines are too long
201
docs/api/maplibre/style/enum.Spaces.html
Normal file
201
docs/api/maplibre/style/enum.Spaces.html
Normal file
File diff suppressed because one or more lines are too long
@ -3,7 +3,7 @@
|
||||
</a><h2 class="location"></h2>
|
||||
</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 style</a></h2><div class="sidebar-elems"><section><div class="block"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#traits">Traits</a></li></ul></div></section><div id="sidebar-vars" data-name="style" 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">
|
||||
</a><h2 class="location"><a href="#">Module style</a></h2><div class="sidebar-elems"><section><div class="block"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#traits">Traits</a></li></ul></div></section><div id="sidebar-vars" data-name="style" 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 class="mod" href="#">style</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/style/mod.rs.html#1-9">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>Vector tile format styling.</p>
|
||||
</div></details><h2 id="modules" class="small-section-header"><a href="#modules">Modules</a></h2>
|
||||
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="mod" href="layer/index.html" title="maplibre::style::layer mod">layer</a></div><div class="item-right docblock-short"><p>Vector tile layer drawing utilities.</p>
|
||||
@ -31,7 +31,9 @@ transfer function.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.EncodedDisplayP3.html" title="maplibre::style::EncodedDisplayP3 struct">EncodedDisplayP3</a></div><div class="item-right docblock-short"><p>A color in the Display P3 (aka P3 D65) color space.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.EncodedRec709.html" title="maplibre::style::EncodedRec709 struct">EncodedRec709</a></div><div class="item-right docblock-short"><p>A color in the encoded Rec.709/BT.709 color space.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.EncodedSrgb.html" title="maplibre::style::EncodedSrgb struct">EncodedSrgb</a></div><div class="item-right docblock-short"><p>A color in the encoded sRGB color space.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.GenericColor.html" title="maplibre::style::GenericColor struct">GenericColor</a></div><div class="item-right docblock-short"><p>A color in a generic color space that can be represented by 3 components. The user
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.GenericColor1.html" title="maplibre::style::GenericColor1 struct">GenericColor1</a></div><div class="item-right docblock-short"><p>A color in a generic color space that can be represented by 1 component. The user
|
||||
is responsible for ensuring that the correct color space is respected.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.GenericColor3.html" title="maplibre::style::GenericColor3 struct">GenericColor3</a></div><div class="item-right docblock-short"><p>A color in a generic color space that can be represented by 3 components. The user
|
||||
is responsible for ensuring that the correct color space is respected.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Hsl.html" title="maplibre::style::Hsl struct">Hsl</a></div><div class="item-right docblock-short"><p>A color in the HSL color space.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Hsv.html" title="maplibre::style::Hsv struct">Hsv</a></div><div class="item-right docblock-short"><p>A color in the HSV color space.</p>
|
||||
@ -40,14 +42,34 @@ nonlinearity.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.ICtCpPQ.html" title="maplibre::style::ICtCpPQ struct">ICtCpPQ</a></div><div class="item-right docblock-short"><p>A color in the ICtCp color space with PQ (Perceptual Quantizer)
|
||||
nonlinearity.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.LinearSrgb.html" title="maplibre::style::LinearSrgb struct">LinearSrgb</a></div><div class="item-right docblock-short"><p>A color in the linear (decoded) sRGB color space.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Luma.html" title="maplibre::style::Luma struct">Luma</a></div><div class="item-right docblock-short"><p>A single-channel CIE luma (non-linear transform from luminance).</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Luminance.html" title="maplibre::style::Luminance struct">Luminance</a></div><div class="item-right docblock-short"><p>A single-channel CIE luminance.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Oklab.html" title="maplibre::style::Oklab struct">Oklab</a></div><div class="item-right docblock-short"><p>A color in the Oklab color space.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Oklch.html" title="maplibre::style::Oklch struct">Oklch</a></div><div class="item-right docblock-short"><p>A color in the Oklch color space (a transformation from Oklab to LCh° coordinates).</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.PremultipliedAlpha.html" title="maplibre::style::PremultipliedAlpha struct">PremultipliedAlpha</a></div><div class="item-right docblock-short"><p>A premultiplied color with an alpha component.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Rec709.html" title="maplibre::style::Rec709 struct">Rec709</a></div><div class="item-right docblock-short"><p>A color in the Rec.709/BT.709 color space.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Style.html" title="maplibre::style::Style struct">Style</a></div><div class="item-right docblock-short"><p>Stores the style for a multi-layered map.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.YCbCr.html" title="maplibre::style::YCbCr struct">YCbCr</a></div><div class="item-right docblock-short"><p>A color in the YCbCr color space. See discussion of the difference between YCbCr, YUV, and
|
||||
YPbPr in <a href="https://en.wikipedia.org/wiki/YCbCr">YCbCr Wikipedia article</a></p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.YCxCz.html" title="maplibre::style::YCxCz struct">YCxCz</a></div><div class="item-right docblock-short"><p>A color in the YCxCz (also called YyCxCz) color space, originally defined in “Optimized
|
||||
universal color palette design for error diffusion” by B. W. Kolpatzik and C. A. Bouman.
|
||||
Can be thought of as a “linear CIE Lab”.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.YPbPr.html" title="maplibre::style::YPbPr struct">YPbPr</a></div><div class="item-right docblock-short"><p>A color in the YPbPr color space. See discussion of the difference between YCbCr,
|
||||
YUV, YPbPr, and Y’PbPr in the <a href="https://en.wikipedia.org/wiki/YCbCr">YCbCr Wikipedia article</a></p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.YPrimeCbCr.html" title="maplibre::style::YPrimeCbCr struct">YPrimeCbCr</a></div><div class="item-right docblock-short"><p>A color in the Y’CbCr color space. See discussion of the difference between YCbCr, Y’CbCr,
|
||||
YUV, YPbPr, and Y’PbPr in the <a href="https://en.wikipedia.org/wiki/YCbCr">YCbCr Wikipedia article</a></p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.YPrimePbPr.html" title="maplibre::style::YPrimePbPr struct">YPrimePbPr</a></div><div class="item-right docblock-short"><p>A color in the Y’PbPr color space. See discussion of the difference between YCbCr,
|
||||
YUV, YPbPr, and Y’PbPr in the <a href="https://en.wikipedia.org/wiki/YCbCr">YCbCr Wikipedia article</a></p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Yuv.html" title="maplibre::style::Yuv struct">Yuv</a></div><div class="item-right docblock-short"><p>A color in the YUV color space. See discussion of the difference between YCbCr, YUV, and
|
||||
YPbPr in <a href="https://en.wikipedia.org/wiki/YCbCr">YCbCr Wikipedia article</a></p>
|
||||
</div></div></div><h2 id="enums" class="small-section-header"><a href="#enums">Enums</a></h2>
|
||||
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.Spaces.html" title="maplibre::style::Spaces enum">Spaces</a></div><div class="item-right docblock-short"><p>An enum with a variant for each of the color spaces
|
||||
supported by the library. Useful for tracking as metadata
|
||||
in something like an image type, and for runtime-determined color types.</p>
|
||||
</div></div></div><h2 id="traits" class="small-section-header"><a href="#traits">Traits</a></h2>
|
||||
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.ColorInterop.html" title="maplibre::style::ColorInterop trait">ColorInterop</a></div><div class="item-right docblock-short"><p>A trait that should be implemented by provider crates on their local color types so that you can call
|
||||
<code>color.to_cint()</code> and <code>Color::from_cint(cint_color)</code>.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.ColorStruct.html" title="maplibre::style::ColorStruct trait">ColorStruct</a></div><div class="item-right docblock-short"><p>A trait used to simpify the interface of the <a href="struct.Alpha.html" title="Alpha"><code>Alpha</code></a> and <a href="struct.PremultipliedAlpha.html" title="PremultipliedAlpha"><code>PremultipliedAlpha</code></a> types.</p>
|
||||
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.ColorType.html" title="maplibre::style::ColorType trait">ColorType</a></div><div class="item-right docblock-short"><p>A trait used to simpify the interface of the <a href="struct.Alpha.html" title="Alpha"><code>Alpha</code></a> and <a href="struct.PremultipliedAlpha.html" title="PremultipliedAlpha"><code>PremultipliedAlpha</code></a> types and
|
||||
allow use with <a href="enum.Spaces.html" title="Spaces"><code>Spaces</code></a> enum.</p>
|
||||
</div></div></div></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="maplibre" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.62.0 (a8314ef7d 2022-06-27)" ></div>
|
||||
</body></html>
|
||||
@ -1 +1 @@
|
||||
initSidebarItems({"mod":[["layer","Vector tile layer drawing utilities."],["source","Vector tile data utilities."],["style","Default vector tile styles configuration."]],"struct":[["Aces2065","A color in the ACES 2065-1 color space."],["AcesCc","A color in the ACEScc color space."],["AcesCct","A color in the ACEScct color space."],["AcesCg","A color in the ACEScg color space."],["Alpha","A color with an alpha component."],["Bt2020","A color in the BT.2020 color space."],["Bt2100","A color in the BT.2100 color space."],["CieLCh","A color in the CIE L*C*h° color space."],["CieLab","A color in the CIE L*a*b* color space."],["CieXYZ","A color in the CIE XYZ color space."],["DciP3","A color in the DCI-P3 (aka P3 DCI and P3 D60) color space."],["DciXYZPrime","A color in the X’Y’Z’ color space, a DCI specification used for digital cinema mastering."],["DisplayP3","A color in the Display P3 (aka P3 D65) color space."],["EncodedBt2020","A color in the encoded BT.2020 color space."],["EncodedBt2100HLG","A color in the encoded BT.2100 color space with HLG (Hybrid Log-Gamma) transfer function."],["EncodedBt2100PQ","A color in the encoded BT.2100 color space with PQ (Perceptual Quantizer) transfer function."],["EncodedDisplayP3","A color in the Display P3 (aka P3 D65) color space."],["EncodedRec709","A color in the encoded Rec.709/BT.709 color space."],["EncodedSrgb","A color in the encoded sRGB color space."],["GenericColor","A color in a generic color space that can be represented by 3 components. The user is responsible for ensuring that the correct color space is respected."],["Hsl","A color in the HSL color space."],["Hsv","A color in the HSV color space."],["ICtCpHLG","A color in the ICtCp color space with HLG (Hybrid Log-Gamma) nonlinearity."],["ICtCpPQ","A color in the ICtCp color space with PQ (Perceptual Quantizer) nonlinearity."],["LinearSrgb","A color in the linear (decoded) sRGB color space."],["Oklab","A color in the Oklab color space."],["Oklch","A color in the Oklch color space (a transformation from Oklab to LCh° coordinates)."],["PremultipliedAlpha","A premultiplied color with an alpha component."],["Rec709","A color in the Rec.709/BT.709 color space."],["Style","Stores the style for a multi-layered map."]],"trait":[["ColorInterop","A trait that should be implemented by provider crates on their local color types so that you can call `color.to_cint()` and `Color::from_cint(cint_color)`."],["ColorStruct","A trait used to simpify the interface of the [`Alpha`] and [`PremultipliedAlpha`] types."]]});
|
||||
initSidebarItems({"enum":[["Spaces","An enum with a variant for each of the color spaces supported by the library. Useful for tracking as metadata in something like an image type, and for runtime-determined color types."]],"mod":[["layer","Vector tile layer drawing utilities."],["source","Vector tile data utilities."],["style","Default vector tile styles configuration."]],"struct":[["Aces2065","A color in the ACES 2065-1 color space."],["AcesCc","A color in the ACEScc color space."],["AcesCct","A color in the ACEScct color space."],["AcesCg","A color in the ACEScg color space."],["Alpha","A color with an alpha component."],["Bt2020","A color in the BT.2020 color space."],["Bt2100","A color in the BT.2100 color space."],["CieLCh","A color in the CIE L*C*h° color space."],["CieLab","A color in the CIE L*a*b* color space."],["CieXYZ","A color in the CIE XYZ color space."],["DciP3","A color in the DCI-P3 (aka P3 DCI and P3 D60) color space."],["DciXYZPrime","A color in the X’Y’Z’ color space, a DCI specification used for digital cinema mastering."],["DisplayP3","A color in the Display P3 (aka P3 D65) color space."],["EncodedBt2020","A color in the encoded BT.2020 color space."],["EncodedBt2100HLG","A color in the encoded BT.2100 color space with HLG (Hybrid Log-Gamma) transfer function."],["EncodedBt2100PQ","A color in the encoded BT.2100 color space with PQ (Perceptual Quantizer) transfer function."],["EncodedDisplayP3","A color in the Display P3 (aka P3 D65) color space."],["EncodedRec709","A color in the encoded Rec.709/BT.709 color space."],["EncodedSrgb","A color in the encoded sRGB color space."],["GenericColor1","A color in a generic color space that can be represented by 1 component. The user is responsible for ensuring that the correct color space is respected."],["GenericColor3","A color in a generic color space that can be represented by 3 components. The user is responsible for ensuring that the correct color space is respected."],["Hsl","A color in the HSL color space."],["Hsv","A color in the HSV color space."],["ICtCpHLG","A color in the ICtCp color space with HLG (Hybrid Log-Gamma) nonlinearity."],["ICtCpPQ","A color in the ICtCp color space with PQ (Perceptual Quantizer) nonlinearity."],["LinearSrgb","A color in the linear (decoded) sRGB color space."],["Luma","A single-channel CIE luma (non-linear transform from luminance)."],["Luminance","A single-channel CIE luminance."],["Oklab","A color in the Oklab color space."],["Oklch","A color in the Oklch color space (a transformation from Oklab to LCh° coordinates)."],["PremultipliedAlpha","A premultiplied color with an alpha component."],["Rec709","A color in the Rec.709/BT.709 color space."],["Style","Stores the style for a multi-layered map."],["YCbCr","A color in the YCbCr color space. See discussion of the difference between YCbCr, YUV, and YPbPr in YCbCr Wikipedia article"],["YCxCz","A color in the YCxCz (also called YyCxCz) color space, originally defined in “Optimized universal color palette design for error diffusion” by B. W. Kolpatzik and C. A. Bouman. Can be thought of as a “linear CIE Lab”."],["YPbPr","A color in the YPbPr color space. See discussion of the difference between YCbCr, YUV, YPbPr, and Y’PbPr in the YCbCr Wikipedia article"],["YPrimeCbCr","A color in the Y’CbCr color space. See discussion of the difference between YCbCr, Y’CbCr, YUV, YPbPr, and Y’PbPr in the YCbCr Wikipedia article"],["YPrimePbPr","A color in the Y’PbPr color space. See discussion of the difference between YCbCr, YUV, YPbPr, and Y’PbPr in the YCbCr Wikipedia article"],["Yuv","A color in the YUV color space. See discussion of the difference between YCbCr, YUV, and YPbPr in YCbCr Wikipedia article"]],"trait":[["ColorInterop","A trait that should be implemented by provider crates on their local color types so that you can call `color.to_cint()` and `Color::from_cint(cint_color)`."],["ColorType","A trait used to simpify the interface of the [`Alpha`] and [`PremultipliedAlpha`] types and allow use with [`Spaces`] enum."]]});
|
||||
@ -3,8 +3,8 @@
|
||||
</a><h2 class="location"></h2>
|
||||
</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="#">Aces2065</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.b">b</a></li><li><a href="#structfield.g">g</a></li><li><a href="#structfield.r">r</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorStruct">ColorStruct</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CAces2065%3CComponentTy%3E%3E%3E">From<Alpha<Aces2065<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CAces2065%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<Aces2065<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CAces2065%3CComponentTy%3E%3E">PartialEq<Aces2065<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CAces2065%3CComponentTy%3E%3E">PartialOrd<Aces2065<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="Aces2065" 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">style</a>::<wbr><a class="struct" href="#">Aces2065</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 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><div class="code-attribute">#[repr(C)]</div>pub struct Aces2065<ComponentTy> {
|
||||
</a><h2 class="location"><a href="#">Aces2065</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.b">b</a></li><li><a href="#structfield.g">g</a></li><li><a href="#structfield.r">r</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E">AsMut<[ComponentTy; 3]></a></li><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorType">ColorType</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CAces2065%3CComponentTy%3E%3E%3E">From<Alpha<Aces2065<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CAces2065%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<Aces2065<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CAces2065%3CComponentTy%3E%3E">PartialEq<Aces2065<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CAces2065%3CComponentTy%3E%3E">PartialOrd<Aces2065<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="Aces2065" 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">style</a>::<wbr><a class="struct" href="#">Aces2065</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 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><div class="code-attribute">#[repr(C)]</div>pub struct Aces2065<ComponentTy = <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.f32.html">f32</a>> {
|
||||
pub r: ComponentTy,
|
||||
pub g: ComponentTy,
|
||||
pub b: ComponentTy,
|
||||
@ -13,13 +13,14 @@
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.r" class="structfield small-section-header"><a href="#structfield.r" class="anchor field"></a><code>r: ComponentTy</code></span><div class="docblock"><p>The red component.</p>
|
||||
</div><span id="structfield.g" class="structfield small-section-header"><a href="#structfield.g" class="anchor field"></a><code>g: ComponentTy</code></span><div class="docblock"><p>The green component.</p>
|
||||
</div><span id="structfield.b" class="structfield small-section-header"><a href="#structfield.b" class="anchor field"></a><code>b: ComponentTy</code></span><div class="docblock"><p>The blue component.</p>
|
||||
</div><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-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Aces2065.html" title="struct maplibre::style::Aces2065">Aces2065</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div><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-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Aces2065.html" title="struct maplibre::style::Aces2065">Aces2065</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut" class="method trait-impl has-srclink"><a href="#method.as_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fnname">as_mut</a>(&mut self) -> &mut <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a mutable reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Aces2065.html" title="struct maplibre::style::Aces2065">Aces2065</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.Aces2065.html" title="struct maplibre::style::Aces2065">Aces2065</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.Aces2065.html" title="struct maplibre::style::Aces2065">Aces2065</a><ComponentTy></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.0/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorStruct" class="impl has-srclink"><a href="#impl-ColorStruct" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorStruct.html" title="trait maplibre::style::ColorStruct">ColorStruct</a> for <a class="struct" href="struct.Aces2065.html" title="struct maplibre::style::Aces2065">Aces2065</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorStruct.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.Aces2065.html" title="struct maplibre::style::Aces2065">Aces2065</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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-ColorType" class="impl has-srclink"><a href="#impl-ColorType" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorType.html" title="trait maplibre::style::ColorType">ColorType</a> for <a class="struct" href="struct.Aces2065.html" title="struct maplibre::style::Aces2065">Aces2065</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorType.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section><section id="associatedconstant.SPACE" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.SPACE" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.SPACE" class="constant">SPACE</a>: <a class="enum" href="enum.Spaces.html" title="enum maplibre::style::Spaces">Spaces</a> = Spaces::Aces2065</h4></section><section id="associatedconstant.NUM_COMPONENTS" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.NUM_COMPONENTS" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.NUM_COMPONENTS" class="constant">NUM_COMPONENTS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.usize.html">usize</a> = 3usize</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.Aces2065.html" title="struct maplibre::style::Aces2065">Aces2065</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Aces2065.html" title="struct maplibre::style::Aces2065">Aces2065</a><ComponentTy></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"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.Aces2065.html" title="struct maplibre::style::Aces2065">Aces2065</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CAces2065%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CAces2065%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.62.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.Aces2065.html" title="struct maplibre::style::Aces2065">Aces2065</a><ComponentTy>>> for <a class="struct" href="struct.Aces2065.html" title="struct maplibre::style::Aces2065">Aces2065</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.Aces2065.html" title="struct maplibre::style::Aces2065">Aces2065</a><ComponentTy>>) -> <a class="struct" href="struct.Aces2065.html" title="struct maplibre::style::Aces2065">Aces2065</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CAces2065%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CAces2065%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.Aces2065.html" title="struct maplibre::style::Aces2065">Aces2065</a><ComponentTy>>> for <a class="struct" href="struct.Aces2065.html" title="struct maplibre::style::Aces2065">Aces2065</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.Aces2065.html" title="struct maplibre::style::Aces2065">Aces2065</a><ComponentTy>><br>) -> <a class="struct" href="struct.Aces2065.html" title="struct maplibre::style::Aces2065">Aces2065</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CAces2065%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CAces2065%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.62.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.Aces2065.html" title="struct maplibre::style::Aces2065">Aces2065</a><ComponentTy>>> for <a class="struct" href="struct.Aces2065.html" title="struct maplibre::style::Aces2065">Aces2065</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.Aces2065.html" title="struct maplibre::style::Aces2065">Aces2065</a><ComponentTy>>) -> <a class="struct" href="struct.Aces2065.html" title="struct maplibre::style::Aces2065">Aces2065</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CAces2065%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CAces2065%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.Aces2065.html" title="struct maplibre::style::Aces2065">Aces2065</a><ComponentTy>>> for <a class="struct" href="struct.Aces2065.html" title="struct maplibre::style::Aces2065">Aces2065</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.Aces2065.html" title="struct maplibre::style::Aces2065">Aces2065</a><ComponentTy>><br>) -> <a class="struct" href="struct.Aces2065.html" title="struct maplibre::style::Aces2065">Aces2065</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</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<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="struct.Aces2065.html" title="struct maplibre::style::Aces2065">Aces2065</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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">fn <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/std/primitive.slice.html">&[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/1.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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%203%5D%3E" class="impl has-srclink"><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Aces2065.html" title="struct maplibre::style::Aces2065">Aces2065</a><ComponentTy></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">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into the (usually inferred) input type.</p>
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
</a><h2 class="location"></h2>
|
||||
</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="#">AcesCc</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.b">b</a></li><li><a href="#structfield.g">g</a></li><li><a href="#structfield.r">r</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorStruct">ColorStruct</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CAcesCc%3CComponentTy%3E%3E%3E">From<Alpha<AcesCc<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CAcesCc%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<AcesCc<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CAcesCc%3CComponentTy%3E%3E">PartialEq<AcesCc<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CAcesCc%3CComponentTy%3E%3E">PartialOrd<AcesCc<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="AcesCc" 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">style</a>::<wbr><a class="struct" href="#">AcesCc</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 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><div class="code-attribute">#[repr(C)]</div>pub struct AcesCc<ComponentTy> {
|
||||
</a><h2 class="location"><a href="#">AcesCc</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.b">b</a></li><li><a href="#structfield.g">g</a></li><li><a href="#structfield.r">r</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E">AsMut<[ComponentTy; 3]></a></li><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorType">ColorType</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CAcesCc%3CComponentTy%3E%3E%3E">From<Alpha<AcesCc<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CAcesCc%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<AcesCc<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CAcesCc%3CComponentTy%3E%3E">PartialEq<AcesCc<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CAcesCc%3CComponentTy%3E%3E">PartialOrd<AcesCc<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="AcesCc" 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">style</a>::<wbr><a class="struct" href="#">AcesCc</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 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><div class="code-attribute">#[repr(C)]</div>pub struct AcesCc<ComponentTy = <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.f32.html">f32</a>> {
|
||||
pub r: ComponentTy,
|
||||
pub g: ComponentTy,
|
||||
pub b: ComponentTy,
|
||||
@ -14,13 +14,14 @@ and a pure logarithmic transfer function.</p>
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.r" class="structfield small-section-header"><a href="#structfield.r" class="anchor field"></a><code>r: ComponentTy</code></span><div class="docblock"><p>The red component.</p>
|
||||
</div><span id="structfield.g" class="structfield small-section-header"><a href="#structfield.g" class="anchor field"></a><code>g: ComponentTy</code></span><div class="docblock"><p>The green component.</p>
|
||||
</div><span id="structfield.b" class="structfield small-section-header"><a href="#structfield.b" class="anchor field"></a><code>b: ComponentTy</code></span><div class="docblock"><p>The blue component.</p>
|
||||
</div><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-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.AcesCc.html" title="struct maplibre::style::AcesCc">AcesCc</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div><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-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.AcesCc.html" title="struct maplibre::style::AcesCc">AcesCc</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut" class="method trait-impl has-srclink"><a href="#method.as_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fnname">as_mut</a>(&mut self) -> &mut <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a mutable reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.AcesCc.html" title="struct maplibre::style::AcesCc">AcesCc</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.AcesCc.html" title="struct maplibre::style::AcesCc">AcesCc</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.AcesCc.html" title="struct maplibre::style::AcesCc">AcesCc</a><ComponentTy></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.0/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorStruct" class="impl has-srclink"><a href="#impl-ColorStruct" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorStruct.html" title="trait maplibre::style::ColorStruct">ColorStruct</a> for <a class="struct" href="struct.AcesCc.html" title="struct maplibre::style::AcesCc">AcesCc</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorStruct.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.AcesCc.html" title="struct maplibre::style::AcesCc">AcesCc</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.AcesCc.html" title="struct maplibre::style::AcesCc">AcesCc</a><ComponentTy></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"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.AcesCc.html" title="struct maplibre::style::AcesCc">AcesCc</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CAcesCc%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CAcesCc%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.62.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.AcesCc.html" title="struct maplibre::style::AcesCc">AcesCc</a><ComponentTy>>> for <a class="struct" href="struct.AcesCc.html" title="struct maplibre::style::AcesCc">AcesCc</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.AcesCc.html" title="struct maplibre::style::AcesCc">AcesCc</a><ComponentTy>>) -> <a class="struct" href="struct.AcesCc.html" title="struct maplibre::style::AcesCc">AcesCc</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CAcesCc%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CAcesCc%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.AcesCc.html" title="struct maplibre::style::AcesCc">AcesCc</a><ComponentTy>>> for <a class="struct" href="struct.AcesCc.html" title="struct maplibre::style::AcesCc">AcesCc</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.AcesCc.html" title="struct maplibre::style::AcesCc">AcesCc</a><ComponentTy>><br>) -> <a class="struct" href="struct.AcesCc.html" title="struct maplibre::style::AcesCc">AcesCc</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorType" class="impl has-srclink"><a href="#impl-ColorType" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorType.html" title="trait maplibre::style::ColorType">ColorType</a> for <a class="struct" href="struct.AcesCc.html" title="struct maplibre::style::AcesCc">AcesCc</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorType.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section><section id="associatedconstant.SPACE" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.SPACE" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.SPACE" class="constant">SPACE</a>: <a class="enum" href="enum.Spaces.html" title="enum maplibre::style::Spaces">Spaces</a> = Spaces::AcesCc</h4></section><section id="associatedconstant.NUM_COMPONENTS" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.NUM_COMPONENTS" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.NUM_COMPONENTS" class="constant">NUM_COMPONENTS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.usize.html">usize</a> = 3usize</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.AcesCc.html" title="struct maplibre::style::AcesCc">AcesCc</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.AcesCc.html" title="struct maplibre::style::AcesCc">AcesCc</a><ComponentTy></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"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.AcesCc.html" title="struct maplibre::style::AcesCc">AcesCc</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CAcesCc%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CAcesCc%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.62.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.AcesCc.html" title="struct maplibre::style::AcesCc">AcesCc</a><ComponentTy>>> for <a class="struct" href="struct.AcesCc.html" title="struct maplibre::style::AcesCc">AcesCc</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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" class="method trait-impl has-srclink"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.AcesCc.html" title="struct maplibre::style::AcesCc">AcesCc</a><ComponentTy>>) -> <a class="struct" href="struct.AcesCc.html" title="struct maplibre::style::AcesCc">AcesCc</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CAcesCc%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CAcesCc%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.AcesCc.html" title="struct maplibre::style::AcesCc">AcesCc</a><ComponentTy>>> for <a class="struct" href="struct.AcesCc.html" title="struct maplibre::style::AcesCc">AcesCc</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.AcesCc.html" title="struct maplibre::style::AcesCc">AcesCc</a><ComponentTy>><br>) -> <a class="struct" href="struct.AcesCc.html" title="struct maplibre::style::AcesCc">AcesCc</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</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<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="struct.AcesCc.html" title="struct maplibre::style::AcesCc">AcesCc</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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">fn <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/std/primitive.slice.html">&[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/1.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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%203%5D%3E" class="impl has-srclink"><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.AcesCc.html" title="struct maplibre::style::AcesCc">AcesCc</a><ComponentTy></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">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into the (usually inferred) input type.</p>
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
</a><h2 class="location"></h2>
|
||||
</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="#">AcesCct</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.b">b</a></li><li><a href="#structfield.g">g</a></li><li><a href="#structfield.r">r</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorStruct">ColorStruct</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CAcesCct%3CComponentTy%3E%3E%3E">From<Alpha<AcesCct<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CAcesCct%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<AcesCct<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CAcesCct%3CComponentTy%3E%3E">PartialEq<AcesCct<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CAcesCct%3CComponentTy%3E%3E">PartialOrd<AcesCct<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="AcesCct" 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">style</a>::<wbr><a class="struct" href="#">AcesCct</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 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><div class="code-attribute">#[repr(C)]</div>pub struct AcesCct<ComponentTy> {
|
||||
</a><h2 class="location"><a href="#">AcesCct</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.b">b</a></li><li><a href="#structfield.g">g</a></li><li><a href="#structfield.r">r</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E">AsMut<[ComponentTy; 3]></a></li><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorType">ColorType</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CAcesCct%3CComponentTy%3E%3E%3E">From<Alpha<AcesCct<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CAcesCct%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<AcesCct<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CAcesCct%3CComponentTy%3E%3E">PartialEq<AcesCct<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CAcesCct%3CComponentTy%3E%3E">PartialOrd<AcesCct<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="AcesCct" 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">style</a>::<wbr><a class="struct" href="#">AcesCct</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 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><div class="code-attribute">#[repr(C)]</div>pub struct AcesCct<ComponentTy = <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.f32.html">f32</a>> {
|
||||
pub r: ComponentTy,
|
||||
pub g: ComponentTy,
|
||||
pub b: ComponentTy,
|
||||
@ -15,13 +15,14 @@ are able to go negative.</p>
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.r" class="structfield small-section-header"><a href="#structfield.r" class="anchor field"></a><code>r: ComponentTy</code></span><div class="docblock"><p>The red component.</p>
|
||||
</div><span id="structfield.g" class="structfield small-section-header"><a href="#structfield.g" class="anchor field"></a><code>g: ComponentTy</code></span><div class="docblock"><p>The green component.</p>
|
||||
</div><span id="structfield.b" class="structfield small-section-header"><a href="#structfield.b" class="anchor field"></a><code>b: ComponentTy</code></span><div class="docblock"><p>The blue component.</p>
|
||||
</div><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-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.AcesCct.html" title="struct maplibre::style::AcesCct">AcesCct</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div><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-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.AcesCct.html" title="struct maplibre::style::AcesCct">AcesCct</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut" class="method trait-impl has-srclink"><a href="#method.as_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fnname">as_mut</a>(&mut self) -> &mut <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a mutable reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.AcesCct.html" title="struct maplibre::style::AcesCct">AcesCct</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.AcesCct.html" title="struct maplibre::style::AcesCct">AcesCct</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.AcesCct.html" title="struct maplibre::style::AcesCct">AcesCct</a><ComponentTy></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.0/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorStruct" class="impl has-srclink"><a href="#impl-ColorStruct" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorStruct.html" title="trait maplibre::style::ColorStruct">ColorStruct</a> for <a class="struct" href="struct.AcesCct.html" title="struct maplibre::style::AcesCct">AcesCct</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorStruct.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.AcesCct.html" title="struct maplibre::style::AcesCct">AcesCct</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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-ColorType" class="impl has-srclink"><a href="#impl-ColorType" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorType.html" title="trait maplibre::style::ColorType">ColorType</a> for <a class="struct" href="struct.AcesCct.html" title="struct maplibre::style::AcesCct">AcesCct</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorType.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section><section id="associatedconstant.SPACE" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.SPACE" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.SPACE" class="constant">SPACE</a>: <a class="enum" href="enum.Spaces.html" title="enum maplibre::style::Spaces">Spaces</a> = Spaces::AcesCct</h4></section><section id="associatedconstant.NUM_COMPONENTS" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.NUM_COMPONENTS" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.NUM_COMPONENTS" class="constant">NUM_COMPONENTS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.usize.html">usize</a> = 3usize</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.AcesCct.html" title="struct maplibre::style::AcesCct">AcesCct</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.AcesCct.html" title="struct maplibre::style::AcesCct">AcesCct</a><ComponentTy></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"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.AcesCct.html" title="struct maplibre::style::AcesCct">AcesCct</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CAcesCct%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CAcesCct%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.62.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.AcesCct.html" title="struct maplibre::style::AcesCct">AcesCct</a><ComponentTy>>> for <a class="struct" href="struct.AcesCct.html" title="struct maplibre::style::AcesCct">AcesCct</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.AcesCct.html" title="struct maplibre::style::AcesCct">AcesCct</a><ComponentTy>>) -> <a class="struct" href="struct.AcesCct.html" title="struct maplibre::style::AcesCct">AcesCct</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CAcesCct%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CAcesCct%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.AcesCct.html" title="struct maplibre::style::AcesCct">AcesCct</a><ComponentTy>>> for <a class="struct" href="struct.AcesCct.html" title="struct maplibre::style::AcesCct">AcesCct</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.AcesCct.html" title="struct maplibre::style::AcesCct">AcesCct</a><ComponentTy>><br>) -> <a class="struct" href="struct.AcesCct.html" title="struct maplibre::style::AcesCct">AcesCct</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CAcesCct%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CAcesCct%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.62.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.AcesCct.html" title="struct maplibre::style::AcesCct">AcesCct</a><ComponentTy>>> for <a class="struct" href="struct.AcesCct.html" title="struct maplibre::style::AcesCct">AcesCct</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.AcesCct.html" title="struct maplibre::style::AcesCct">AcesCct</a><ComponentTy>>) -> <a class="struct" href="struct.AcesCct.html" title="struct maplibre::style::AcesCct">AcesCct</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CAcesCct%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CAcesCct%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.AcesCct.html" title="struct maplibre::style::AcesCct">AcesCct</a><ComponentTy>>> for <a class="struct" href="struct.AcesCct.html" title="struct maplibre::style::AcesCct">AcesCct</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.AcesCct.html" title="struct maplibre::style::AcesCct">AcesCct</a><ComponentTy>><br>) -> <a class="struct" href="struct.AcesCct.html" title="struct maplibre::style::AcesCct">AcesCct</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</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<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="struct.AcesCct.html" title="struct maplibre::style::AcesCct">AcesCct</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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">fn <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/std/primitive.slice.html">&[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/1.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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%203%5D%3E" class="impl has-srclink"><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.AcesCct.html" title="struct maplibre::style::AcesCct">AcesCct</a><ComponentTy></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">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into the (usually inferred) input type.</p>
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
</a><h2 class="location"></h2>
|
||||
</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="#">AcesCg</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.b">b</a></li><li><a href="#structfield.g">g</a></li><li><a href="#structfield.r">r</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorStruct">ColorStruct</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CAcesCg%3CComponentTy%3E%3E%3E">From<Alpha<AcesCg<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CAcesCg%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<AcesCg<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CAcesCg%3CComponentTy%3E%3E">PartialEq<AcesCg<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CAcesCg%3CComponentTy%3E%3E">PartialOrd<AcesCg<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="AcesCg" 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">style</a>::<wbr><a class="struct" href="#">AcesCg</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 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><div class="code-attribute">#[repr(C)]</div>pub struct AcesCg<ComponentTy> {
|
||||
</a><h2 class="location"><a href="#">AcesCg</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.b">b</a></li><li><a href="#structfield.g">g</a></li><li><a href="#structfield.r">r</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E">AsMut<[ComponentTy; 3]></a></li><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorType">ColorType</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CAcesCg%3CComponentTy%3E%3E%3E">From<Alpha<AcesCg<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CAcesCg%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<AcesCg<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CAcesCg%3CComponentTy%3E%3E">PartialEq<AcesCg<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CAcesCg%3CComponentTy%3E%3E">PartialOrd<AcesCg<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="AcesCg" 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">style</a>::<wbr><a class="struct" href="#">AcesCg</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 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><div class="code-attribute">#[repr(C)]</div>pub struct AcesCg<ComponentTy = <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.f32.html">f32</a>> {
|
||||
pub r: ComponentTy,
|
||||
pub g: ComponentTy,
|
||||
pub b: ComponentTy,
|
||||
@ -13,13 +13,14 @@
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.r" class="structfield small-section-header"><a href="#structfield.r" class="anchor field"></a><code>r: ComponentTy</code></span><div class="docblock"><p>The red component.</p>
|
||||
</div><span id="structfield.g" class="structfield small-section-header"><a href="#structfield.g" class="anchor field"></a><code>g: ComponentTy</code></span><div class="docblock"><p>The green component.</p>
|
||||
</div><span id="structfield.b" class="structfield small-section-header"><a href="#structfield.b" class="anchor field"></a><code>b: ComponentTy</code></span><div class="docblock"><p>The blue component.</p>
|
||||
</div><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-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.AcesCg.html" title="struct maplibre::style::AcesCg">AcesCg</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div><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-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.AcesCg.html" title="struct maplibre::style::AcesCg">AcesCg</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut" class="method trait-impl has-srclink"><a href="#method.as_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fnname">as_mut</a>(&mut self) -> &mut <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a mutable reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.AcesCg.html" title="struct maplibre::style::AcesCg">AcesCg</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.AcesCg.html" title="struct maplibre::style::AcesCg">AcesCg</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.AcesCg.html" title="struct maplibre::style::AcesCg">AcesCg</a><ComponentTy></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.0/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorStruct" class="impl has-srclink"><a href="#impl-ColorStruct" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorStruct.html" title="trait maplibre::style::ColorStruct">ColorStruct</a> for <a class="struct" href="struct.AcesCg.html" title="struct maplibre::style::AcesCg">AcesCg</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorStruct.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.AcesCg.html" title="struct maplibre::style::AcesCg">AcesCg</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.AcesCg.html" title="struct maplibre::style::AcesCg">AcesCg</a><ComponentTy></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"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.AcesCg.html" title="struct maplibre::style::AcesCg">AcesCg</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CAcesCg%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CAcesCg%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.62.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.AcesCg.html" title="struct maplibre::style::AcesCg">AcesCg</a><ComponentTy>>> for <a class="struct" href="struct.AcesCg.html" title="struct maplibre::style::AcesCg">AcesCg</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.AcesCg.html" title="struct maplibre::style::AcesCg">AcesCg</a><ComponentTy>>) -> <a class="struct" href="struct.AcesCg.html" title="struct maplibre::style::AcesCg">AcesCg</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CAcesCg%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CAcesCg%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.AcesCg.html" title="struct maplibre::style::AcesCg">AcesCg</a><ComponentTy>>> for <a class="struct" href="struct.AcesCg.html" title="struct maplibre::style::AcesCg">AcesCg</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.AcesCg.html" title="struct maplibre::style::AcesCg">AcesCg</a><ComponentTy>><br>) -> <a class="struct" href="struct.AcesCg.html" title="struct maplibre::style::AcesCg">AcesCg</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorType" class="impl has-srclink"><a href="#impl-ColorType" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorType.html" title="trait maplibre::style::ColorType">ColorType</a> for <a class="struct" href="struct.AcesCg.html" title="struct maplibre::style::AcesCg">AcesCg</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorType.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section><section id="associatedconstant.SPACE" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.SPACE" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.SPACE" class="constant">SPACE</a>: <a class="enum" href="enum.Spaces.html" title="enum maplibre::style::Spaces">Spaces</a> = Spaces::AcesCg</h4></section><section id="associatedconstant.NUM_COMPONENTS" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.NUM_COMPONENTS" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.NUM_COMPONENTS" class="constant">NUM_COMPONENTS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.usize.html">usize</a> = 3usize</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.AcesCg.html" title="struct maplibre::style::AcesCg">AcesCg</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.AcesCg.html" title="struct maplibre::style::AcesCg">AcesCg</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.AcesCg.html" title="struct maplibre::style::AcesCg">AcesCg</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CAcesCg%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CAcesCg%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.62.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.AcesCg.html" title="struct maplibre::style::AcesCg">AcesCg</a><ComponentTy>>> for <a class="struct" href="struct.AcesCg.html" title="struct maplibre::style::AcesCg">AcesCg</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.AcesCg.html" title="struct maplibre::style::AcesCg">AcesCg</a><ComponentTy>>) -> <a class="struct" href="struct.AcesCg.html" title="struct maplibre::style::AcesCg">AcesCg</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CAcesCg%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CAcesCg%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.AcesCg.html" title="struct maplibre::style::AcesCg">AcesCg</a><ComponentTy>>> for <a class="struct" href="struct.AcesCg.html" title="struct maplibre::style::AcesCg">AcesCg</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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" class="method trait-impl has-srclink"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.AcesCg.html" title="struct maplibre::style::AcesCg">AcesCg</a><ComponentTy>><br>) -> <a class="struct" href="struct.AcesCg.html" title="struct maplibre::style::AcesCg">AcesCg</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</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<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="struct.AcesCg.html" title="struct maplibre::style::AcesCg">AcesCg</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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">fn <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/std/primitive.slice.html">&[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/1.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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%203%5D%3E" class="impl has-srclink"><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.AcesCg.html" title="struct maplibre::style::AcesCg">AcesCg</a><ComponentTy></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">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into the (usually inferred) input type.</p>
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -3,8 +3,8 @@
|
||||
</a><h2 class="location"></h2>
|
||||
</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="#">Bt2020</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.b">b</a></li><li><a href="#structfield.g">g</a></li><li><a href="#structfield.r">r</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorStruct">ColorStruct</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CBt2020%3CComponentTy%3E%3E%3E">From<Alpha<Bt2020<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CBt2020%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<Bt2020<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CBt2020%3CComponentTy%3E%3E">PartialEq<Bt2020<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CBt2020%3CComponentTy%3E%3E">PartialOrd<Bt2020<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="Bt2020" 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">style</a>::<wbr><a class="struct" href="#">Bt2020</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 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><div class="code-attribute">#[repr(C)]</div>pub struct Bt2020<ComponentTy> {
|
||||
</a><h2 class="location"><a href="#">Bt2020</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.b">b</a></li><li><a href="#structfield.g">g</a></li><li><a href="#structfield.r">r</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E">AsMut<[ComponentTy; 3]></a></li><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorType">ColorType</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CBt2020%3CComponentTy%3E%3E%3E">From<Alpha<Bt2020<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CBt2020%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<Bt2020<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CBt2020%3CComponentTy%3E%3E">PartialEq<Bt2020<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CBt2020%3CComponentTy%3E%3E">PartialOrd<Bt2020<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="Bt2020" 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">style</a>::<wbr><a class="struct" href="#">Bt2020</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 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><div class="code-attribute">#[repr(C)]</div>pub struct Bt2020<ComponentTy = <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.f32.html">f32</a>> {
|
||||
pub r: ComponentTy,
|
||||
pub g: ComponentTy,
|
||||
pub b: ComponentTy,
|
||||
@ -13,13 +13,14 @@
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.r" class="structfield small-section-header"><a href="#structfield.r" class="anchor field"></a><code>r: ComponentTy</code></span><div class="docblock"><p>The red component.</p>
|
||||
</div><span id="structfield.g" class="structfield small-section-header"><a href="#structfield.g" class="anchor field"></a><code>g: ComponentTy</code></span><div class="docblock"><p>The green component.</p>
|
||||
</div><span id="structfield.b" class="structfield small-section-header"><a href="#structfield.b" class="anchor field"></a><code>b: ComponentTy</code></span><div class="docblock"><p>The blue component.</p>
|
||||
</div><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-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Bt2020.html" title="struct maplibre::style::Bt2020">Bt2020</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div><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-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Bt2020.html" title="struct maplibre::style::Bt2020">Bt2020</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut" class="method trait-impl has-srclink"><a href="#method.as_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fnname">as_mut</a>(&mut self) -> &mut <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a mutable reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Bt2020.html" title="struct maplibre::style::Bt2020">Bt2020</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.Bt2020.html" title="struct maplibre::style::Bt2020">Bt2020</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.Bt2020.html" title="struct maplibre::style::Bt2020">Bt2020</a><ComponentTy></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.0/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorStruct" class="impl has-srclink"><a href="#impl-ColorStruct" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorStruct.html" title="trait maplibre::style::ColorStruct">ColorStruct</a> for <a class="struct" href="struct.Bt2020.html" title="struct maplibre::style::Bt2020">Bt2020</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorStruct.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.Bt2020.html" title="struct maplibre::style::Bt2020">Bt2020</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Bt2020.html" title="struct maplibre::style::Bt2020">Bt2020</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.Bt2020.html" title="struct maplibre::style::Bt2020">Bt2020</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CBt2020%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CBt2020%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.62.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.Bt2020.html" title="struct maplibre::style::Bt2020">Bt2020</a><ComponentTy>>> for <a class="struct" href="struct.Bt2020.html" title="struct maplibre::style::Bt2020">Bt2020</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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" class="method trait-impl has-srclink"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.Bt2020.html" title="struct maplibre::style::Bt2020">Bt2020</a><ComponentTy>>) -> <a class="struct" href="struct.Bt2020.html" title="struct maplibre::style::Bt2020">Bt2020</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CBt2020%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CBt2020%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.Bt2020.html" title="struct maplibre::style::Bt2020">Bt2020</a><ComponentTy>>> for <a class="struct" href="struct.Bt2020.html" title="struct maplibre::style::Bt2020">Bt2020</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.Bt2020.html" title="struct maplibre::style::Bt2020">Bt2020</a><ComponentTy>><br>) -> <a class="struct" href="struct.Bt2020.html" title="struct maplibre::style::Bt2020">Bt2020</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorType" class="impl has-srclink"><a href="#impl-ColorType" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorType.html" title="trait maplibre::style::ColorType">ColorType</a> for <a class="struct" href="struct.Bt2020.html" title="struct maplibre::style::Bt2020">Bt2020</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorType.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section><section id="associatedconstant.SPACE" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.SPACE" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.SPACE" class="constant">SPACE</a>: <a class="enum" href="enum.Spaces.html" title="enum maplibre::style::Spaces">Spaces</a> = Spaces::Bt2020</h4></section><section id="associatedconstant.NUM_COMPONENTS" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.NUM_COMPONENTS" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.NUM_COMPONENTS" class="constant">NUM_COMPONENTS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.usize.html">usize</a> = 3usize</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.Bt2020.html" title="struct maplibre::style::Bt2020">Bt2020</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Bt2020.html" title="struct maplibre::style::Bt2020">Bt2020</a><ComponentTy></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"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.Bt2020.html" title="struct maplibre::style::Bt2020">Bt2020</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CBt2020%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CBt2020%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.62.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.Bt2020.html" title="struct maplibre::style::Bt2020">Bt2020</a><ComponentTy>>> for <a class="struct" href="struct.Bt2020.html" title="struct maplibre::style::Bt2020">Bt2020</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.Bt2020.html" title="struct maplibre::style::Bt2020">Bt2020</a><ComponentTy>>) -> <a class="struct" href="struct.Bt2020.html" title="struct maplibre::style::Bt2020">Bt2020</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CBt2020%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CBt2020%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.Bt2020.html" title="struct maplibre::style::Bt2020">Bt2020</a><ComponentTy>>> for <a class="struct" href="struct.Bt2020.html" title="struct maplibre::style::Bt2020">Bt2020</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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" class="method trait-impl has-srclink"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.Bt2020.html" title="struct maplibre::style::Bt2020">Bt2020</a><ComponentTy>><br>) -> <a class="struct" href="struct.Bt2020.html" title="struct maplibre::style::Bt2020">Bt2020</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</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<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="struct.Bt2020.html" title="struct maplibre::style::Bt2020">Bt2020</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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">fn <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/std/primitive.slice.html">&[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/1.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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%203%5D%3E" class="impl has-srclink"><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Bt2020.html" title="struct maplibre::style::Bt2020">Bt2020</a><ComponentTy></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">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into the (usually inferred) input type.</p>
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
</a><h2 class="location"></h2>
|
||||
</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="#">Bt2100</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.b">b</a></li><li><a href="#structfield.g">g</a></li><li><a href="#structfield.r">r</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorStruct">ColorStruct</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CBt2100%3CComponentTy%3E%3E%3E">From<Alpha<Bt2100<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CBt2100%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<Bt2100<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CBt2100%3CComponentTy%3E%3E">PartialEq<Bt2100<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CBt2100%3CComponentTy%3E%3E">PartialOrd<Bt2100<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="Bt2100" 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">style</a>::<wbr><a class="struct" href="#">Bt2100</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 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><div class="code-attribute">#[repr(C)]</div>pub struct Bt2100<ComponentTy> {
|
||||
</a><h2 class="location"><a href="#">Bt2100</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.b">b</a></li><li><a href="#structfield.g">g</a></li><li><a href="#structfield.r">r</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E">AsMut<[ComponentTy; 3]></a></li><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorType">ColorType</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CBt2100%3CComponentTy%3E%3E%3E">From<Alpha<Bt2100<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CBt2100%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<Bt2100<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CBt2100%3CComponentTy%3E%3E">PartialEq<Bt2100<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CBt2100%3CComponentTy%3E%3E">PartialOrd<Bt2100<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="Bt2100" 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">style</a>::<wbr><a class="struct" href="#">Bt2100</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 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><div class="code-attribute">#[repr(C)]</div>pub struct Bt2100<ComponentTy = <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.f32.html">f32</a>> {
|
||||
pub r: ComponentTy,
|
||||
pub g: ComponentTy,
|
||||
pub b: ComponentTy,
|
||||
@ -13,13 +13,14 @@
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.r" class="structfield small-section-header"><a href="#structfield.r" class="anchor field"></a><code>r: ComponentTy</code></span><div class="docblock"><p>The red component.</p>
|
||||
</div><span id="structfield.g" class="structfield small-section-header"><a href="#structfield.g" class="anchor field"></a><code>g: ComponentTy</code></span><div class="docblock"><p>The green component.</p>
|
||||
</div><span id="structfield.b" class="structfield small-section-header"><a href="#structfield.b" class="anchor field"></a><code>b: ComponentTy</code></span><div class="docblock"><p>The blue component.</p>
|
||||
</div><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-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Bt2100.html" title="struct maplibre::style::Bt2100">Bt2100</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div><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-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Bt2100.html" title="struct maplibre::style::Bt2100">Bt2100</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut" class="method trait-impl has-srclink"><a href="#method.as_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fnname">as_mut</a>(&mut self) -> &mut <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a mutable reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Bt2100.html" title="struct maplibre::style::Bt2100">Bt2100</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.Bt2100.html" title="struct maplibre::style::Bt2100">Bt2100</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.Bt2100.html" title="struct maplibre::style::Bt2100">Bt2100</a><ComponentTy></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.0/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorStruct" class="impl has-srclink"><a href="#impl-ColorStruct" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorStruct.html" title="trait maplibre::style::ColorStruct">ColorStruct</a> for <a class="struct" href="struct.Bt2100.html" title="struct maplibre::style::Bt2100">Bt2100</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorStruct.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.Bt2100.html" title="struct maplibre::style::Bt2100">Bt2100</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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-ColorType" class="impl has-srclink"><a href="#impl-ColorType" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorType.html" title="trait maplibre::style::ColorType">ColorType</a> for <a class="struct" href="struct.Bt2100.html" title="struct maplibre::style::Bt2100">Bt2100</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorType.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section><section id="associatedconstant.SPACE" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.SPACE" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.SPACE" class="constant">SPACE</a>: <a class="enum" href="enum.Spaces.html" title="enum maplibre::style::Spaces">Spaces</a> = Spaces::Bt2100</h4></section><section id="associatedconstant.NUM_COMPONENTS" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.NUM_COMPONENTS" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.NUM_COMPONENTS" class="constant">NUM_COMPONENTS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.usize.html">usize</a> = 3usize</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.Bt2100.html" title="struct maplibre::style::Bt2100">Bt2100</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Bt2100.html" title="struct maplibre::style::Bt2100">Bt2100</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.Bt2100.html" title="struct maplibre::style::Bt2100">Bt2100</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CBt2100%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CBt2100%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.62.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.Bt2100.html" title="struct maplibre::style::Bt2100">Bt2100</a><ComponentTy>>> for <a class="struct" href="struct.Bt2100.html" title="struct maplibre::style::Bt2100">Bt2100</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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" class="method trait-impl has-srclink"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.Bt2100.html" title="struct maplibre::style::Bt2100">Bt2100</a><ComponentTy>>) -> <a class="struct" href="struct.Bt2100.html" title="struct maplibre::style::Bt2100">Bt2100</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CBt2100%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CBt2100%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.Bt2100.html" title="struct maplibre::style::Bt2100">Bt2100</a><ComponentTy>>> for <a class="struct" href="struct.Bt2100.html" title="struct maplibre::style::Bt2100">Bt2100</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.Bt2100.html" title="struct maplibre::style::Bt2100">Bt2100</a><ComponentTy>><br>) -> <a class="struct" href="struct.Bt2100.html" title="struct maplibre::style::Bt2100">Bt2100</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CBt2100%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CBt2100%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.62.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.Bt2100.html" title="struct maplibre::style::Bt2100">Bt2100</a><ComponentTy>>> for <a class="struct" href="struct.Bt2100.html" title="struct maplibre::style::Bt2100">Bt2100</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.Bt2100.html" title="struct maplibre::style::Bt2100">Bt2100</a><ComponentTy>>) -> <a class="struct" href="struct.Bt2100.html" title="struct maplibre::style::Bt2100">Bt2100</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CBt2100%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CBt2100%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.Bt2100.html" title="struct maplibre::style::Bt2100">Bt2100</a><ComponentTy>>> for <a class="struct" href="struct.Bt2100.html" title="struct maplibre::style::Bt2100">Bt2100</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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" class="method trait-impl has-srclink"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.Bt2100.html" title="struct maplibre::style::Bt2100">Bt2100</a><ComponentTy>><br>) -> <a class="struct" href="struct.Bt2100.html" title="struct maplibre::style::Bt2100">Bt2100</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</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<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="struct.Bt2100.html" title="struct maplibre::style::Bt2100">Bt2100</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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">fn <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/std/primitive.slice.html">&[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/1.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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%203%5D%3E" class="impl has-srclink"><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Bt2100.html" title="struct maplibre::style::Bt2100">Bt2100</a><ComponentTy></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">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into the (usually inferred) input type.</p>
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
</a><h2 class="location"></h2>
|
||||
</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="#">CieLCh</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.c">c</a></li><li><a href="#structfield.h">h</a></li><li><a href="#structfield.l">l</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorStruct">ColorStruct</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CCieLCh%3CComponentTy%3E%3E%3E">From<Alpha<CieLCh<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CCieLCh%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<CieLCh<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CCieLCh%3CComponentTy%3E%3E">PartialEq<CieLCh<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CCieLCh%3CComponentTy%3E%3E">PartialOrd<CieLCh<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="CieLCh" 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">style</a>::<wbr><a class="struct" href="#">CieLCh</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 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><div class="code-attribute">#[repr(C)]</div>pub struct CieLCh<ComponentTy> {
|
||||
</a><h2 class="location"><a href="#">CieLCh</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.c">c</a></li><li><a href="#structfield.h">h</a></li><li><a href="#structfield.l">l</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E">AsMut<[ComponentTy; 3]></a></li><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorType">ColorType</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CCieLCh%3CComponentTy%3E%3E%3E">From<Alpha<CieLCh<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CCieLCh%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<CieLCh<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CCieLCh%3CComponentTy%3E%3E">PartialEq<CieLCh<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CCieLCh%3CComponentTy%3E%3E">PartialOrd<CieLCh<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="CieLCh" 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">style</a>::<wbr><a class="struct" href="#">CieLCh</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 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><div class="code-attribute">#[repr(C)]</div>pub struct CieLCh<ComponentTy = <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.f32.html">f32</a>> {
|
||||
pub l: ComponentTy,
|
||||
pub c: ComponentTy,
|
||||
pub h: ComponentTy,
|
||||
@ -12,13 +12,14 @@
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.l" class="structfield small-section-header"><a href="#structfield.l" class="anchor field"></a><code>l: ComponentTy</code></span><div class="docblock"><p>The L (lightness) component. Varies from 0 to 100.</p>
|
||||
</div><span id="structfield.c" class="structfield small-section-header"><a href="#structfield.c" class="anchor field"></a><code>c: ComponentTy</code></span><div class="docblock"><p>The C (chroma) component. Varies from 0 to a hue dependent maximum.</p>
|
||||
</div><span id="structfield.h" class="structfield small-section-header"><a href="#structfield.h" class="anchor field"></a><code>h: ComponentTy</code></span><div class="docblock"><p>The h (hue) component. Varies from -PI to PI.</p>
|
||||
</div><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-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.CieLCh.html" title="struct maplibre::style::CieLCh">CieLCh</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div><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-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.CieLCh.html" title="struct maplibre::style::CieLCh">CieLCh</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut" class="method trait-impl has-srclink"><a href="#method.as_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fnname">as_mut</a>(&mut self) -> &mut <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a mutable reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.CieLCh.html" title="struct maplibre::style::CieLCh">CieLCh</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.CieLCh.html" title="struct maplibre::style::CieLCh">CieLCh</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.CieLCh.html" title="struct maplibre::style::CieLCh">CieLCh</a><ComponentTy></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.0/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorStruct" class="impl has-srclink"><a href="#impl-ColorStruct" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorStruct.html" title="trait maplibre::style::ColorStruct">ColorStruct</a> for <a class="struct" href="struct.CieLCh.html" title="struct maplibre::style::CieLCh">CieLCh</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorStruct.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.CieLCh.html" title="struct maplibre::style::CieLCh">CieLCh</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.CieLCh.html" title="struct maplibre::style::CieLCh">CieLCh</a><ComponentTy></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"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.CieLCh.html" title="struct maplibre::style::CieLCh">CieLCh</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CCieLCh%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CCieLCh%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.62.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.CieLCh.html" title="struct maplibre::style::CieLCh">CieLCh</a><ComponentTy>>> for <a class="struct" href="struct.CieLCh.html" title="struct maplibre::style::CieLCh">CieLCh</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.CieLCh.html" title="struct maplibre::style::CieLCh">CieLCh</a><ComponentTy>>) -> <a class="struct" href="struct.CieLCh.html" title="struct maplibre::style::CieLCh">CieLCh</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CCieLCh%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CCieLCh%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.CieLCh.html" title="struct maplibre::style::CieLCh">CieLCh</a><ComponentTy>>> for <a class="struct" href="struct.CieLCh.html" title="struct maplibre::style::CieLCh">CieLCh</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.CieLCh.html" title="struct maplibre::style::CieLCh">CieLCh</a><ComponentTy>><br>) -> <a class="struct" href="struct.CieLCh.html" title="struct maplibre::style::CieLCh">CieLCh</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorType" class="impl has-srclink"><a href="#impl-ColorType" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorType.html" title="trait maplibre::style::ColorType">ColorType</a> for <a class="struct" href="struct.CieLCh.html" title="struct maplibre::style::CieLCh">CieLCh</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorType.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section><section id="associatedconstant.SPACE" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.SPACE" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.SPACE" class="constant">SPACE</a>: <a class="enum" href="enum.Spaces.html" title="enum maplibre::style::Spaces">Spaces</a> = Spaces::CieLCh</h4></section><section id="associatedconstant.NUM_COMPONENTS" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.NUM_COMPONENTS" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.NUM_COMPONENTS" class="constant">NUM_COMPONENTS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.usize.html">usize</a> = 3usize</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.CieLCh.html" title="struct maplibre::style::CieLCh">CieLCh</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.CieLCh.html" title="struct maplibre::style::CieLCh">CieLCh</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.CieLCh.html" title="struct maplibre::style::CieLCh">CieLCh</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CCieLCh%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CCieLCh%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.62.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.CieLCh.html" title="struct maplibre::style::CieLCh">CieLCh</a><ComponentTy>>> for <a class="struct" href="struct.CieLCh.html" title="struct maplibre::style::CieLCh">CieLCh</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.CieLCh.html" title="struct maplibre::style::CieLCh">CieLCh</a><ComponentTy>>) -> <a class="struct" href="struct.CieLCh.html" title="struct maplibre::style::CieLCh">CieLCh</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CCieLCh%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CCieLCh%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.CieLCh.html" title="struct maplibre::style::CieLCh">CieLCh</a><ComponentTy>>> for <a class="struct" href="struct.CieLCh.html" title="struct maplibre::style::CieLCh">CieLCh</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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" class="method trait-impl has-srclink"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.CieLCh.html" title="struct maplibre::style::CieLCh">CieLCh</a><ComponentTy>><br>) -> <a class="struct" href="struct.CieLCh.html" title="struct maplibre::style::CieLCh">CieLCh</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</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<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="struct.CieLCh.html" title="struct maplibre::style::CieLCh">CieLCh</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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">fn <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/std/primitive.slice.html">&[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/1.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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%203%5D%3E" class="impl has-srclink"><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.CieLCh.html" title="struct maplibre::style::CieLCh">CieLCh</a><ComponentTy></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">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into the (usually inferred) input type.</p>
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
</a><h2 class="location"></h2>
|
||||
</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="#">CieLab</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.a">a</a></li><li><a href="#structfield.b">b</a></li><li><a href="#structfield.l">l</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorStruct">ColorStruct</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CCieLab%3CComponentTy%3E%3E%3E">From<Alpha<CieLab<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CCieLab%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<CieLab<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CCieLab%3CComponentTy%3E%3E">PartialEq<CieLab<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CCieLab%3CComponentTy%3E%3E">PartialOrd<CieLab<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="CieLab" 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">style</a>::<wbr><a class="struct" href="#">CieLab</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 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><div class="code-attribute">#[repr(C)]</div>pub struct CieLab<ComponentTy> {
|
||||
</a><h2 class="location"><a href="#">CieLab</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.a">a</a></li><li><a href="#structfield.b">b</a></li><li><a href="#structfield.l">l</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E">AsMut<[ComponentTy; 3]></a></li><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorType">ColorType</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CCieLab%3CComponentTy%3E%3E%3E">From<Alpha<CieLab<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CCieLab%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<CieLab<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CCieLab%3CComponentTy%3E%3E">PartialEq<CieLab<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CCieLab%3CComponentTy%3E%3E">PartialOrd<CieLab<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="CieLab" 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">style</a>::<wbr><a class="struct" href="#">CieLab</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 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><div class="code-attribute">#[repr(C)]</div>pub struct CieLab<ComponentTy = <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.f32.html">f32</a>> {
|
||||
pub l: ComponentTy,
|
||||
pub a: ComponentTy,
|
||||
pub b: ComponentTy,
|
||||
@ -12,13 +12,14 @@
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.l" class="structfield small-section-header"><a href="#structfield.l" class="anchor field"></a><code>l: ComponentTy</code></span><div class="docblock"><p>The L (lightness) component. Varies from 0 to 100.</p>
|
||||
</div><span id="structfield.a" class="structfield small-section-header"><a href="#structfield.a" class="anchor field"></a><code>a: ComponentTy</code></span><div class="docblock"><p>The a component, representing green-red chroma difference.</p>
|
||||
</div><span id="structfield.b" class="structfield small-section-header"><a href="#structfield.b" class="anchor field"></a><code>b: ComponentTy</code></span><div class="docblock"><p>The b component, representing blue-yellow chroma difference.</p>
|
||||
</div><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-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.CieLab.html" title="struct maplibre::style::CieLab">CieLab</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div><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-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.CieLab.html" title="struct maplibre::style::CieLab">CieLab</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut" class="method trait-impl has-srclink"><a href="#method.as_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fnname">as_mut</a>(&mut self) -> &mut <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a mutable reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.CieLab.html" title="struct maplibre::style::CieLab">CieLab</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.CieLab.html" title="struct maplibre::style::CieLab">CieLab</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.CieLab.html" title="struct maplibre::style::CieLab">CieLab</a><ComponentTy></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.0/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorStruct" class="impl has-srclink"><a href="#impl-ColorStruct" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorStruct.html" title="trait maplibre::style::ColorStruct">ColorStruct</a> for <a class="struct" href="struct.CieLab.html" title="struct maplibre::style::CieLab">CieLab</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorStruct.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.CieLab.html" title="struct maplibre::style::CieLab">CieLab</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.CieLab.html" title="struct maplibre::style::CieLab">CieLab</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.CieLab.html" title="struct maplibre::style::CieLab">CieLab</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CCieLab%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CCieLab%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.62.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.CieLab.html" title="struct maplibre::style::CieLab">CieLab</a><ComponentTy>>> for <a class="struct" href="struct.CieLab.html" title="struct maplibre::style::CieLab">CieLab</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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" class="method trait-impl has-srclink"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.CieLab.html" title="struct maplibre::style::CieLab">CieLab</a><ComponentTy>>) -> <a class="struct" href="struct.CieLab.html" title="struct maplibre::style::CieLab">CieLab</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CCieLab%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CCieLab%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.CieLab.html" title="struct maplibre::style::CieLab">CieLab</a><ComponentTy>>> for <a class="struct" href="struct.CieLab.html" title="struct maplibre::style::CieLab">CieLab</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.CieLab.html" title="struct maplibre::style::CieLab">CieLab</a><ComponentTy>><br>) -> <a class="struct" href="struct.CieLab.html" title="struct maplibre::style::CieLab">CieLab</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorType" class="impl has-srclink"><a href="#impl-ColorType" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorType.html" title="trait maplibre::style::ColorType">ColorType</a> for <a class="struct" href="struct.CieLab.html" title="struct maplibre::style::CieLab">CieLab</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorType.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section><section id="associatedconstant.SPACE" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.SPACE" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.SPACE" class="constant">SPACE</a>: <a class="enum" href="enum.Spaces.html" title="enum maplibre::style::Spaces">Spaces</a> = Spaces::CieLab</h4></section><section id="associatedconstant.NUM_COMPONENTS" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.NUM_COMPONENTS" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.NUM_COMPONENTS" class="constant">NUM_COMPONENTS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.usize.html">usize</a> = 3usize</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.CieLab.html" title="struct maplibre::style::CieLab">CieLab</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.CieLab.html" title="struct maplibre::style::CieLab">CieLab</a><ComponentTy></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"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.CieLab.html" title="struct maplibre::style::CieLab">CieLab</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CCieLab%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CCieLab%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.62.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.CieLab.html" title="struct maplibre::style::CieLab">CieLab</a><ComponentTy>>> for <a class="struct" href="struct.CieLab.html" title="struct maplibre::style::CieLab">CieLab</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.CieLab.html" title="struct maplibre::style::CieLab">CieLab</a><ComponentTy>>) -> <a class="struct" href="struct.CieLab.html" title="struct maplibre::style::CieLab">CieLab</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CCieLab%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CCieLab%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.CieLab.html" title="struct maplibre::style::CieLab">CieLab</a><ComponentTy>>> for <a class="struct" href="struct.CieLab.html" title="struct maplibre::style::CieLab">CieLab</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.CieLab.html" title="struct maplibre::style::CieLab">CieLab</a><ComponentTy>><br>) -> <a class="struct" href="struct.CieLab.html" title="struct maplibre::style::CieLab">CieLab</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</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<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="struct.CieLab.html" title="struct maplibre::style::CieLab">CieLab</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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">fn <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/std/primitive.slice.html">&[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/1.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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%203%5D%3E" class="impl has-srclink"><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.CieLab.html" title="struct maplibre::style::CieLab">CieLab</a><ComponentTy></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">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into the (usually inferred) input type.</p>
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
</a><h2 class="location"></h2>
|
||||
</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="#">CieXYZ</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.x">x</a></li><li><a href="#structfield.y">y</a></li><li><a href="#structfield.z">z</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorStruct">ColorStruct</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CCieXYZ%3CComponentTy%3E%3E%3E">From<Alpha<CieXYZ<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CCieXYZ%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<CieXYZ<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CCieXYZ%3CComponentTy%3E%3E">PartialEq<CieXYZ<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CCieXYZ%3CComponentTy%3E%3E">PartialOrd<CieXYZ<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="CieXYZ" 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">style</a>::<wbr><a class="struct" href="#">CieXYZ</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 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><div class="code-attribute">#[repr(C)]</div>pub struct CieXYZ<ComponentTy> {
|
||||
</a><h2 class="location"><a href="#">CieXYZ</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.x">x</a></li><li><a href="#structfield.y">y</a></li><li><a href="#structfield.z">z</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E">AsMut<[ComponentTy; 3]></a></li><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorType">ColorType</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CCieXYZ%3CComponentTy%3E%3E%3E">From<Alpha<CieXYZ<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CCieXYZ%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<CieXYZ<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CCieXYZ%3CComponentTy%3E%3E">PartialEq<CieXYZ<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CCieXYZ%3CComponentTy%3E%3E">PartialOrd<CieXYZ<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="CieXYZ" 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">style</a>::<wbr><a class="struct" href="#">CieXYZ</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 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><div class="code-attribute">#[repr(C)]</div>pub struct CieXYZ<ComponentTy = <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.f32.html">f32</a>> {
|
||||
pub x: ComponentTy,
|
||||
pub y: ComponentTy,
|
||||
pub z: ComponentTy,
|
||||
@ -13,13 +13,14 @@
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.x" class="structfield small-section-header"><a href="#structfield.x" class="anchor field"></a><code>x: ComponentTy</code></span><div class="docblock"><p>The X component.</p>
|
||||
</div><span id="structfield.y" class="structfield small-section-header"><a href="#structfield.y" class="anchor field"></a><code>y: ComponentTy</code></span><div class="docblock"><p>The Y component.</p>
|
||||
</div><span id="structfield.z" class="structfield small-section-header"><a href="#structfield.z" class="anchor field"></a><code>z: ComponentTy</code></span><div class="docblock"><p>The Z component.</p>
|
||||
</div><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-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.CieXYZ.html" title="struct maplibre::style::CieXYZ">CieXYZ</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div><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-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.CieXYZ.html" title="struct maplibre::style::CieXYZ">CieXYZ</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut" class="method trait-impl has-srclink"><a href="#method.as_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fnname">as_mut</a>(&mut self) -> &mut <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a mutable reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.CieXYZ.html" title="struct maplibre::style::CieXYZ">CieXYZ</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.CieXYZ.html" title="struct maplibre::style::CieXYZ">CieXYZ</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.CieXYZ.html" title="struct maplibre::style::CieXYZ">CieXYZ</a><ComponentTy></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.0/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorStruct" class="impl has-srclink"><a href="#impl-ColorStruct" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorStruct.html" title="trait maplibre::style::ColorStruct">ColorStruct</a> for <a class="struct" href="struct.CieXYZ.html" title="struct maplibre::style::CieXYZ">CieXYZ</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorStruct.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.CieXYZ.html" title="struct maplibre::style::CieXYZ">CieXYZ</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.CieXYZ.html" title="struct maplibre::style::CieXYZ">CieXYZ</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.CieXYZ.html" title="struct maplibre::style::CieXYZ">CieXYZ</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CCieXYZ%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CCieXYZ%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.62.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.CieXYZ.html" title="struct maplibre::style::CieXYZ">CieXYZ</a><ComponentTy>>> for <a class="struct" href="struct.CieXYZ.html" title="struct maplibre::style::CieXYZ">CieXYZ</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.CieXYZ.html" title="struct maplibre::style::CieXYZ">CieXYZ</a><ComponentTy>>) -> <a class="struct" href="struct.CieXYZ.html" title="struct maplibre::style::CieXYZ">CieXYZ</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CCieXYZ%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CCieXYZ%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.CieXYZ.html" title="struct maplibre::style::CieXYZ">CieXYZ</a><ComponentTy>>> for <a class="struct" href="struct.CieXYZ.html" title="struct maplibre::style::CieXYZ">CieXYZ</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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" class="method trait-impl has-srclink"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.CieXYZ.html" title="struct maplibre::style::CieXYZ">CieXYZ</a><ComponentTy>><br>) -> <a class="struct" href="struct.CieXYZ.html" title="struct maplibre::style::CieXYZ">CieXYZ</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorType" class="impl has-srclink"><a href="#impl-ColorType" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorType.html" title="trait maplibre::style::ColorType">ColorType</a> for <a class="struct" href="struct.CieXYZ.html" title="struct maplibre::style::CieXYZ">CieXYZ</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorType.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section><section id="associatedconstant.SPACE" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.SPACE" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.SPACE" class="constant">SPACE</a>: <a class="enum" href="enum.Spaces.html" title="enum maplibre::style::Spaces">Spaces</a> = Spaces::CieXYZ</h4></section><section id="associatedconstant.NUM_COMPONENTS" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.NUM_COMPONENTS" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.NUM_COMPONENTS" class="constant">NUM_COMPONENTS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.usize.html">usize</a> = 3usize</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.CieXYZ.html" title="struct maplibre::style::CieXYZ">CieXYZ</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.CieXYZ.html" title="struct maplibre::style::CieXYZ">CieXYZ</a><ComponentTy></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"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.CieXYZ.html" title="struct maplibre::style::CieXYZ">CieXYZ</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CCieXYZ%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CCieXYZ%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.62.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.CieXYZ.html" title="struct maplibre::style::CieXYZ">CieXYZ</a><ComponentTy>>> for <a class="struct" href="struct.CieXYZ.html" title="struct maplibre::style::CieXYZ">CieXYZ</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.CieXYZ.html" title="struct maplibre::style::CieXYZ">CieXYZ</a><ComponentTy>>) -> <a class="struct" href="struct.CieXYZ.html" title="struct maplibre::style::CieXYZ">CieXYZ</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CCieXYZ%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CCieXYZ%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.CieXYZ.html" title="struct maplibre::style::CieXYZ">CieXYZ</a><ComponentTy>>> for <a class="struct" href="struct.CieXYZ.html" title="struct maplibre::style::CieXYZ">CieXYZ</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.CieXYZ.html" title="struct maplibre::style::CieXYZ">CieXYZ</a><ComponentTy>><br>) -> <a class="struct" href="struct.CieXYZ.html" title="struct maplibre::style::CieXYZ">CieXYZ</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</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<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="struct.CieXYZ.html" title="struct maplibre::style::CieXYZ">CieXYZ</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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">fn <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/std/primitive.slice.html">&[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/1.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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%203%5D%3E" class="impl has-srclink"><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.CieXYZ.html" title="struct maplibre::style::CieXYZ">CieXYZ</a><ComponentTy></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">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into the (usually inferred) input type.</p>
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
</a><h2 class="location"></h2>
|
||||
</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="#">DciP3</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.b">b</a></li><li><a href="#structfield.g">g</a></li><li><a href="#structfield.r">r</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorStruct">ColorStruct</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CDciP3%3CComponentTy%3E%3E%3E">From<Alpha<DciP3<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CDciP3%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<DciP3<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CDciP3%3CComponentTy%3E%3E">PartialEq<DciP3<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CDciP3%3CComponentTy%3E%3E">PartialOrd<DciP3<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="DciP3" 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">style</a>::<wbr><a class="struct" href="#">DciP3</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 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><div class="code-attribute">#[repr(C)]</div>pub struct DciP3<ComponentTy> {
|
||||
</a><h2 class="location"><a href="#">DciP3</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.b">b</a></li><li><a href="#structfield.g">g</a></li><li><a href="#structfield.r">r</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E">AsMut<[ComponentTy; 3]></a></li><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorType">ColorType</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CDciP3%3CComponentTy%3E%3E%3E">From<Alpha<DciP3<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CDciP3%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<DciP3<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CDciP3%3CComponentTy%3E%3E">PartialEq<DciP3<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CDciP3%3CComponentTy%3E%3E">PartialOrd<DciP3<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="DciP3" 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">style</a>::<wbr><a class="struct" href="#">DciP3</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 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><div class="code-attribute">#[repr(C)]</div>pub struct DciP3<ComponentTy = <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.f32.html">f32</a>> {
|
||||
pub r: ComponentTy,
|
||||
pub g: ComponentTy,
|
||||
pub b: ComponentTy,
|
||||
@ -15,13 +15,14 @@
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.r" class="structfield small-section-header"><a href="#structfield.r" class="anchor field"></a><code>r: ComponentTy</code></span><div class="docblock"><p>The red component.</p>
|
||||
</div><span id="structfield.g" class="structfield small-section-header"><a href="#structfield.g" class="anchor field"></a><code>g: ComponentTy</code></span><div class="docblock"><p>The green component.</p>
|
||||
</div><span id="structfield.b" class="structfield small-section-header"><a href="#structfield.b" class="anchor field"></a><code>b: ComponentTy</code></span><div class="docblock"><p>The blue component.</p>
|
||||
</div><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-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.DciP3.html" title="struct maplibre::style::DciP3">DciP3</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div><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-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.DciP3.html" title="struct maplibre::style::DciP3">DciP3</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut" class="method trait-impl has-srclink"><a href="#method.as_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fnname">as_mut</a>(&mut self) -> &mut <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a mutable reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.DciP3.html" title="struct maplibre::style::DciP3">DciP3</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.DciP3.html" title="struct maplibre::style::DciP3">DciP3</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.DciP3.html" title="struct maplibre::style::DciP3">DciP3</a><ComponentTy></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.0/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorStruct" class="impl has-srclink"><a href="#impl-ColorStruct" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorStruct.html" title="trait maplibre::style::ColorStruct">ColorStruct</a> for <a class="struct" href="struct.DciP3.html" title="struct maplibre::style::DciP3">DciP3</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorStruct.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.DciP3.html" title="struct maplibre::style::DciP3">DciP3</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.DciP3.html" title="struct maplibre::style::DciP3">DciP3</a><ComponentTy></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"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.DciP3.html" title="struct maplibre::style::DciP3">DciP3</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CDciP3%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CDciP3%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.62.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.DciP3.html" title="struct maplibre::style::DciP3">DciP3</a><ComponentTy>>> for <a class="struct" href="struct.DciP3.html" title="struct maplibre::style::DciP3">DciP3</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.DciP3.html" title="struct maplibre::style::DciP3">DciP3</a><ComponentTy>>) -> <a class="struct" href="struct.DciP3.html" title="struct maplibre::style::DciP3">DciP3</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CDciP3%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CDciP3%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.DciP3.html" title="struct maplibre::style::DciP3">DciP3</a><ComponentTy>>> for <a class="struct" href="struct.DciP3.html" title="struct maplibre::style::DciP3">DciP3</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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" class="method trait-impl has-srclink"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.DciP3.html" title="struct maplibre::style::DciP3">DciP3</a><ComponentTy>>) -> <a class="struct" href="struct.DciP3.html" title="struct maplibre::style::DciP3">DciP3</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorType" class="impl has-srclink"><a href="#impl-ColorType" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorType.html" title="trait maplibre::style::ColorType">ColorType</a> for <a class="struct" href="struct.DciP3.html" title="struct maplibre::style::DciP3">DciP3</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorType.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section><section id="associatedconstant.SPACE" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.SPACE" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.SPACE" class="constant">SPACE</a>: <a class="enum" href="enum.Spaces.html" title="enum maplibre::style::Spaces">Spaces</a> = Spaces::DciP3</h4></section><section id="associatedconstant.NUM_COMPONENTS" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.NUM_COMPONENTS" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.NUM_COMPONENTS" class="constant">NUM_COMPONENTS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.usize.html">usize</a> = 3usize</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.DciP3.html" title="struct maplibre::style::DciP3">DciP3</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.DciP3.html" title="struct maplibre::style::DciP3">DciP3</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.DciP3.html" title="struct maplibre::style::DciP3">DciP3</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CDciP3%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CDciP3%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.62.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.DciP3.html" title="struct maplibre::style::DciP3">DciP3</a><ComponentTy>>> for <a class="struct" href="struct.DciP3.html" title="struct maplibre::style::DciP3">DciP3</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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" class="method trait-impl has-srclink"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.DciP3.html" title="struct maplibre::style::DciP3">DciP3</a><ComponentTy>>) -> <a class="struct" href="struct.DciP3.html" title="struct maplibre::style::DciP3">DciP3</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CDciP3%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CDciP3%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.DciP3.html" title="struct maplibre::style::DciP3">DciP3</a><ComponentTy>>> for <a class="struct" href="struct.DciP3.html" title="struct maplibre::style::DciP3">DciP3</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.DciP3.html" title="struct maplibre::style::DciP3">DciP3</a><ComponentTy>>) -> <a class="struct" href="struct.DciP3.html" title="struct maplibre::style::DciP3">DciP3</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</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<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="struct.DciP3.html" title="struct maplibre::style::DciP3">DciP3</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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">fn <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/std/primitive.slice.html">&[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/1.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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%203%5D%3E" class="impl has-srclink"><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.DciP3.html" title="struct maplibre::style::DciP3">DciP3</a><ComponentTy></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">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into the (usually inferred) input type.</p>
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
</a><h2 class="location"></h2>
|
||||
</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="#">DciXYZPrime</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.x">x</a></li><li><a href="#structfield.y">y</a></li><li><a href="#structfield.z">z</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorStruct">ColorStruct</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CDciXYZPrime%3CComponentTy%3E%3E%3E">From<Alpha<DciXYZPrime<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CDciXYZPrime%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<DciXYZPrime<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CDciXYZPrime%3CComponentTy%3E%3E">PartialEq<DciXYZPrime<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CDciXYZPrime%3CComponentTy%3E%3E">PartialOrd<DciXYZPrime<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="DciXYZPrime" 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">style</a>::<wbr><a class="struct" href="#">DciXYZPrime</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 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><div class="code-attribute">#[repr(C)]</div>pub struct DciXYZPrime<ComponentTy> {
|
||||
</a><h2 class="location"><a href="#">DciXYZPrime</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.x">x</a></li><li><a href="#structfield.y">y</a></li><li><a href="#structfield.z">z</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E">AsMut<[ComponentTy; 3]></a></li><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorType">ColorType</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CDciXYZPrime%3CComponentTy%3E%3E%3E">From<Alpha<DciXYZPrime<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CDciXYZPrime%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<DciXYZPrime<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CDciXYZPrime%3CComponentTy%3E%3E">PartialEq<DciXYZPrime<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CDciXYZPrime%3CComponentTy%3E%3E">PartialOrd<DciXYZPrime<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="DciXYZPrime" 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">style</a>::<wbr><a class="struct" href="#">DciXYZPrime</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 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><div class="code-attribute">#[repr(C)]</div>pub struct DciXYZPrime<ComponentTy = <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.f32.html">f32</a>> {
|
||||
pub x: ComponentTy,
|
||||
pub y: ComponentTy,
|
||||
pub z: ComponentTy,
|
||||
@ -13,13 +13,14 @@
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.x" class="structfield small-section-header"><a href="#structfield.x" class="anchor field"></a><code>x: ComponentTy</code></span><div class="docblock"><p>The X’ component.</p>
|
||||
</div><span id="structfield.y" class="structfield small-section-header"><a href="#structfield.y" class="anchor field"></a><code>y: ComponentTy</code></span><div class="docblock"><p>The Y’ component.</p>
|
||||
</div><span id="structfield.z" class="structfield small-section-header"><a href="#structfield.z" class="anchor field"></a><code>z: ComponentTy</code></span><div class="docblock"><p>The Z’ component.</p>
|
||||
</div><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-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.DciXYZPrime.html" title="struct maplibre::style::DciXYZPrime">DciXYZPrime</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div><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-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.DciXYZPrime.html" title="struct maplibre::style::DciXYZPrime">DciXYZPrime</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut" class="method trait-impl has-srclink"><a href="#method.as_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fnname">as_mut</a>(&mut self) -> &mut <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a mutable reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.DciXYZPrime.html" title="struct maplibre::style::DciXYZPrime">DciXYZPrime</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.DciXYZPrime.html" title="struct maplibre::style::DciXYZPrime">DciXYZPrime</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.DciXYZPrime.html" title="struct maplibre::style::DciXYZPrime">DciXYZPrime</a><ComponentTy></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.0/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorStruct" class="impl has-srclink"><a href="#impl-ColorStruct" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorStruct.html" title="trait maplibre::style::ColorStruct">ColorStruct</a> for <a class="struct" href="struct.DciXYZPrime.html" title="struct maplibre::style::DciXYZPrime">DciXYZPrime</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorStruct.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.DciXYZPrime.html" title="struct maplibre::style::DciXYZPrime">DciXYZPrime</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.DciXYZPrime.html" title="struct maplibre::style::DciXYZPrime">DciXYZPrime</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.DciXYZPrime.html" title="struct maplibre::style::DciXYZPrime">DciXYZPrime</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CDciXYZPrime%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CDciXYZPrime%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.62.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.DciXYZPrime.html" title="struct maplibre::style::DciXYZPrime">DciXYZPrime</a><ComponentTy>>> for <a class="struct" href="struct.DciXYZPrime.html" title="struct maplibre::style::DciXYZPrime">DciXYZPrime</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.DciXYZPrime.html" title="struct maplibre::style::DciXYZPrime">DciXYZPrime</a><ComponentTy>>) -> <a class="struct" href="struct.DciXYZPrime.html" title="struct maplibre::style::DciXYZPrime">DciXYZPrime</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CDciXYZPrime%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CDciXYZPrime%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.DciXYZPrime.html" title="struct maplibre::style::DciXYZPrime">DciXYZPrime</a><ComponentTy>>> for <a class="struct" href="struct.DciXYZPrime.html" title="struct maplibre::style::DciXYZPrime">DciXYZPrime</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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" class="method trait-impl has-srclink"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.DciXYZPrime.html" title="struct maplibre::style::DciXYZPrime">DciXYZPrime</a><ComponentTy>><br>) -> <a class="struct" href="struct.DciXYZPrime.html" title="struct maplibre::style::DciXYZPrime">DciXYZPrime</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorType" class="impl has-srclink"><a href="#impl-ColorType" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorType.html" title="trait maplibre::style::ColorType">ColorType</a> for <a class="struct" href="struct.DciXYZPrime.html" title="struct maplibre::style::DciXYZPrime">DciXYZPrime</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorType.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section><section id="associatedconstant.SPACE" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.SPACE" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.SPACE" class="constant">SPACE</a>: <a class="enum" href="enum.Spaces.html" title="enum maplibre::style::Spaces">Spaces</a> = Spaces::DciXYZPrime</h4></section><section id="associatedconstant.NUM_COMPONENTS" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.NUM_COMPONENTS" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.NUM_COMPONENTS" class="constant">NUM_COMPONENTS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.usize.html">usize</a> = 3usize</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.DciXYZPrime.html" title="struct maplibre::style::DciXYZPrime">DciXYZPrime</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.DciXYZPrime.html" title="struct maplibre::style::DciXYZPrime">DciXYZPrime</a><ComponentTy></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"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.DciXYZPrime.html" title="struct maplibre::style::DciXYZPrime">DciXYZPrime</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CDciXYZPrime%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CDciXYZPrime%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.62.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.DciXYZPrime.html" title="struct maplibre::style::DciXYZPrime">DciXYZPrime</a><ComponentTy>>> for <a class="struct" href="struct.DciXYZPrime.html" title="struct maplibre::style::DciXYZPrime">DciXYZPrime</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.DciXYZPrime.html" title="struct maplibre::style::DciXYZPrime">DciXYZPrime</a><ComponentTy>>) -> <a class="struct" href="struct.DciXYZPrime.html" title="struct maplibre::style::DciXYZPrime">DciXYZPrime</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CDciXYZPrime%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CDciXYZPrime%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.DciXYZPrime.html" title="struct maplibre::style::DciXYZPrime">DciXYZPrime</a><ComponentTy>>> for <a class="struct" href="struct.DciXYZPrime.html" title="struct maplibre::style::DciXYZPrime">DciXYZPrime</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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" class="method trait-impl has-srclink"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.DciXYZPrime.html" title="struct maplibre::style::DciXYZPrime">DciXYZPrime</a><ComponentTy>><br>) -> <a class="struct" href="struct.DciXYZPrime.html" title="struct maplibre::style::DciXYZPrime">DciXYZPrime</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</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<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="struct.DciXYZPrime.html" title="struct maplibre::style::DciXYZPrime">DciXYZPrime</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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">fn <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/std/primitive.slice.html">&[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/1.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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%203%5D%3E" class="impl has-srclink"><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.DciXYZPrime.html" title="struct maplibre::style::DciXYZPrime">DciXYZPrime</a><ComponentTy></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">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into the (usually inferred) input type.</p>
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
</a><h2 class="location"></h2>
|
||||
</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="#">DisplayP3</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.b">b</a></li><li><a href="#structfield.g">g</a></li><li><a href="#structfield.r">r</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorStruct">ColorStruct</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CDisplayP3%3CComponentTy%3E%3E%3E">From<Alpha<DisplayP3<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CDisplayP3%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<DisplayP3<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CDisplayP3%3CComponentTy%3E%3E">PartialEq<DisplayP3<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CDisplayP3%3CComponentTy%3E%3E">PartialOrd<DisplayP3<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="DisplayP3" 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">style</a>::<wbr><a class="struct" href="#">DisplayP3</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 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><div class="code-attribute">#[repr(C)]</div>pub struct DisplayP3<ComponentTy> {
|
||||
</a><h2 class="location"><a href="#">DisplayP3</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.b">b</a></li><li><a href="#structfield.g">g</a></li><li><a href="#structfield.r">r</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E">AsMut<[ComponentTy; 3]></a></li><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorType">ColorType</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CDisplayP3%3CComponentTy%3E%3E%3E">From<Alpha<DisplayP3<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CDisplayP3%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<DisplayP3<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CDisplayP3%3CComponentTy%3E%3E">PartialEq<DisplayP3<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CDisplayP3%3CComponentTy%3E%3E">PartialOrd<DisplayP3<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="DisplayP3" 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">style</a>::<wbr><a class="struct" href="#">DisplayP3</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 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><div class="code-attribute">#[repr(C)]</div>pub struct DisplayP3<ComponentTy = <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.f32.html">f32</a>> {
|
||||
pub r: ComponentTy,
|
||||
pub g: ComponentTy,
|
||||
pub b: ComponentTy,
|
||||
@ -15,13 +15,14 @@ without the sRGB OETF applied.</p>
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.r" class="structfield small-section-header"><a href="#structfield.r" class="anchor field"></a><code>r: ComponentTy</code></span><div class="docblock"><p>The red component.</p>
|
||||
</div><span id="structfield.g" class="structfield small-section-header"><a href="#structfield.g" class="anchor field"></a><code>g: ComponentTy</code></span><div class="docblock"><p>The green component.</p>
|
||||
</div><span id="structfield.b" class="structfield small-section-header"><a href="#structfield.b" class="anchor field"></a><code>b: ComponentTy</code></span><div class="docblock"><p>The blue component.</p>
|
||||
</div><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-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.DisplayP3.html" title="struct maplibre::style::DisplayP3">DisplayP3</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div><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-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.DisplayP3.html" title="struct maplibre::style::DisplayP3">DisplayP3</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut" class="method trait-impl has-srclink"><a href="#method.as_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fnname">as_mut</a>(&mut self) -> &mut <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a mutable reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.DisplayP3.html" title="struct maplibre::style::DisplayP3">DisplayP3</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.DisplayP3.html" title="struct maplibre::style::DisplayP3">DisplayP3</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.DisplayP3.html" title="struct maplibre::style::DisplayP3">DisplayP3</a><ComponentTy></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.0/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorStruct" class="impl has-srclink"><a href="#impl-ColorStruct" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorStruct.html" title="trait maplibre::style::ColorStruct">ColorStruct</a> for <a class="struct" href="struct.DisplayP3.html" title="struct maplibre::style::DisplayP3">DisplayP3</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorStruct.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.DisplayP3.html" title="struct maplibre::style::DisplayP3">DisplayP3</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.DisplayP3.html" title="struct maplibre::style::DisplayP3">DisplayP3</a><ComponentTy></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"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.DisplayP3.html" title="struct maplibre::style::DisplayP3">DisplayP3</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CDisplayP3%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CDisplayP3%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.62.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.DisplayP3.html" title="struct maplibre::style::DisplayP3">DisplayP3</a><ComponentTy>>> for <a class="struct" href="struct.DisplayP3.html" title="struct maplibre::style::DisplayP3">DisplayP3</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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" class="method trait-impl has-srclink"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.DisplayP3.html" title="struct maplibre::style::DisplayP3">DisplayP3</a><ComponentTy>>) -> <a class="struct" href="struct.DisplayP3.html" title="struct maplibre::style::DisplayP3">DisplayP3</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CDisplayP3%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CDisplayP3%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.DisplayP3.html" title="struct maplibre::style::DisplayP3">DisplayP3</a><ComponentTy>>> for <a class="struct" href="struct.DisplayP3.html" title="struct maplibre::style::DisplayP3">DisplayP3</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.DisplayP3.html" title="struct maplibre::style::DisplayP3">DisplayP3</a><ComponentTy>><br>) -> <a class="struct" href="struct.DisplayP3.html" title="struct maplibre::style::DisplayP3">DisplayP3</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorType" class="impl has-srclink"><a href="#impl-ColorType" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorType.html" title="trait maplibre::style::ColorType">ColorType</a> for <a class="struct" href="struct.DisplayP3.html" title="struct maplibre::style::DisplayP3">DisplayP3</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorType.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section><section id="associatedconstant.SPACE" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.SPACE" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.SPACE" class="constant">SPACE</a>: <a class="enum" href="enum.Spaces.html" title="enum maplibre::style::Spaces">Spaces</a> = Spaces::DisplayP3</h4></section><section id="associatedconstant.NUM_COMPONENTS" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.NUM_COMPONENTS" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.NUM_COMPONENTS" class="constant">NUM_COMPONENTS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.usize.html">usize</a> = 3usize</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.DisplayP3.html" title="struct maplibre::style::DisplayP3">DisplayP3</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.DisplayP3.html" title="struct maplibre::style::DisplayP3">DisplayP3</a><ComponentTy></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"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.DisplayP3.html" title="struct maplibre::style::DisplayP3">DisplayP3</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CDisplayP3%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CDisplayP3%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.62.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.DisplayP3.html" title="struct maplibre::style::DisplayP3">DisplayP3</a><ComponentTy>>> for <a class="struct" href="struct.DisplayP3.html" title="struct maplibre::style::DisplayP3">DisplayP3</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.DisplayP3.html" title="struct maplibre::style::DisplayP3">DisplayP3</a><ComponentTy>>) -> <a class="struct" href="struct.DisplayP3.html" title="struct maplibre::style::DisplayP3">DisplayP3</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CDisplayP3%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CDisplayP3%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.DisplayP3.html" title="struct maplibre::style::DisplayP3">DisplayP3</a><ComponentTy>>> for <a class="struct" href="struct.DisplayP3.html" title="struct maplibre::style::DisplayP3">DisplayP3</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.DisplayP3.html" title="struct maplibre::style::DisplayP3">DisplayP3</a><ComponentTy>><br>) -> <a class="struct" href="struct.DisplayP3.html" title="struct maplibre::style::DisplayP3">DisplayP3</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</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<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="struct.DisplayP3.html" title="struct maplibre::style::DisplayP3">DisplayP3</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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">fn <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/std/primitive.slice.html">&[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/1.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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%203%5D%3E" class="impl has-srclink"><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.DisplayP3.html" title="struct maplibre::style::DisplayP3">DisplayP3</a><ComponentTy></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">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into the (usually inferred) input type.</p>
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
</a><h2 class="location"></h2>
|
||||
</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="#">EncodedBt2020</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.b">b</a></li><li><a href="#structfield.g">g</a></li><li><a href="#structfield.r">r</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorStruct">ColorStruct</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CEncodedBt2020%3CComponentTy%3E%3E%3E">From<Alpha<EncodedBt2020<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CEncodedBt2020%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<EncodedBt2020<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CEncodedBt2020%3CComponentTy%3E%3E">PartialEq<EncodedBt2020<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CEncodedBt2020%3CComponentTy%3E%3E">PartialOrd<EncodedBt2020<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="EncodedBt2020" 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">style</a>::<wbr><a class="struct" href="#">EncodedBt2020</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 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><div class="code-attribute">#[repr(C)]</div>pub struct EncodedBt2020<ComponentTy> {
|
||||
</a><h2 class="location"><a href="#">EncodedBt2020</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.b">b</a></li><li><a href="#structfield.g">g</a></li><li><a href="#structfield.r">r</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E">AsMut<[ComponentTy; 3]></a></li><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorType">ColorType</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CEncodedBt2020%3CComponentTy%3E%3E%3E">From<Alpha<EncodedBt2020<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CEncodedBt2020%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<EncodedBt2020<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CEncodedBt2020%3CComponentTy%3E%3E">PartialEq<EncodedBt2020<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CEncodedBt2020%3CComponentTy%3E%3E">PartialOrd<EncodedBt2020<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="EncodedBt2020" 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">style</a>::<wbr><a class="struct" href="#">EncodedBt2020</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 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><div class="code-attribute">#[repr(C)]</div>pub struct EncodedBt2020<ComponentTy = <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.f32.html">f32</a>> {
|
||||
pub r: ComponentTy,
|
||||
pub g: ComponentTy,
|
||||
pub b: ComponentTy,
|
||||
@ -16,13 +16,14 @@ BT.2020/BT.601 OETF applied.</p>
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.r" class="structfield small-section-header"><a href="#structfield.r" class="anchor field"></a><code>r: ComponentTy</code></span><div class="docblock"><p>The red component.</p>
|
||||
</div><span id="structfield.g" class="structfield small-section-header"><a href="#structfield.g" class="anchor field"></a><code>g: ComponentTy</code></span><div class="docblock"><p>The green component.</p>
|
||||
</div><span id="structfield.b" class="structfield small-section-header"><a href="#structfield.b" class="anchor field"></a><code>b: ComponentTy</code></span><div class="docblock"><p>The blue component.</p>
|
||||
</div><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-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.EncodedBt2020.html" title="struct maplibre::style::EncodedBt2020">EncodedBt2020</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div><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-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.EncodedBt2020.html" title="struct maplibre::style::EncodedBt2020">EncodedBt2020</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut" class="method trait-impl has-srclink"><a href="#method.as_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fnname">as_mut</a>(&mut self) -> &mut <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a mutable reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.EncodedBt2020.html" title="struct maplibre::style::EncodedBt2020">EncodedBt2020</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <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.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.EncodedBt2020.html" title="struct maplibre::style::EncodedBt2020">EncodedBt2020</a><ComponentTy></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.0/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorStruct" class="impl has-srclink"><a href="#impl-ColorStruct" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorStruct.html" title="trait maplibre::style::ColorStruct">ColorStruct</a> for <a class="struct" href="struct.EncodedBt2020.html" title="struct maplibre::style::EncodedBt2020">EncodedBt2020</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorStruct.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <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.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.EncodedBt2020.html" title="struct maplibre::style::EncodedBt2020">EncodedBt2020</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.EncodedBt2020.html" title="struct maplibre::style::EncodedBt2020">EncodedBt2020</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CEncodedBt2020%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CEncodedBt2020%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.62.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.EncodedBt2020.html" title="struct maplibre::style::EncodedBt2020">EncodedBt2020</a><ComponentTy>>> for <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.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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" class="method trait-impl has-srclink"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <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>><br>) -> <a class="struct" href="struct.EncodedBt2020.html" title="struct maplibre::style::EncodedBt2020">EncodedBt2020</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CEncodedBt2020%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CEncodedBt2020%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.EncodedBt2020.html" title="struct maplibre::style::EncodedBt2020">EncodedBt2020</a><ComponentTy>>> for <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.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.EncodedBt2020.html" title="struct maplibre::style::EncodedBt2020">EncodedBt2020</a><ComponentTy>><br>) -> <a class="struct" href="struct.EncodedBt2020.html" title="struct maplibre::style::EncodedBt2020">EncodedBt2020</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorType" class="impl has-srclink"><a href="#impl-ColorType" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorType.html" title="trait maplibre::style::ColorType">ColorType</a> for <a class="struct" href="struct.EncodedBt2020.html" title="struct maplibre::style::EncodedBt2020">EncodedBt2020</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorType.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section><section id="associatedconstant.SPACE" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.SPACE" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.SPACE" class="constant">SPACE</a>: <a class="enum" href="enum.Spaces.html" title="enum maplibre::style::Spaces">Spaces</a> = Spaces::EncodedBt2020</h4></section><section id="associatedconstant.NUM_COMPONENTS" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.NUM_COMPONENTS" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.NUM_COMPONENTS" class="constant">NUM_COMPONENTS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.usize.html">usize</a> = 3usize</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <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.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.EncodedBt2020.html" title="struct maplibre::style::EncodedBt2020">EncodedBt2020</a><ComponentTy></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"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.EncodedBt2020.html" title="struct maplibre::style::EncodedBt2020">EncodedBt2020</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CEncodedBt2020%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CEncodedBt2020%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.62.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.EncodedBt2020.html" title="struct maplibre::style::EncodedBt2020">EncodedBt2020</a><ComponentTy>>> for <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.62.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-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <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>><br>) -> <a class="struct" href="struct.EncodedBt2020.html" title="struct maplibre::style::EncodedBt2020">EncodedBt2020</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CEncodedBt2020%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CEncodedBt2020%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.EncodedBt2020.html" title="struct maplibre::style::EncodedBt2020">EncodedBt2020</a><ComponentTy>>> for <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.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.EncodedBt2020.html" title="struct maplibre::style::EncodedBt2020">EncodedBt2020</a><ComponentTy>><br>) -> <a class="struct" href="struct.EncodedBt2020.html" title="struct maplibre::style::EncodedBt2020">EncodedBt2020</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</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<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <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.62.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">fn <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/std/primitive.slice.html">&[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/1.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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%203%5D%3E" class="impl has-srclink"><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.EncodedBt2020.html" title="struct maplibre::style::EncodedBt2020">EncodedBt2020</a><ComponentTy></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">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into the (usually inferred) input type.</p>
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
</a><h2 class="location"></h2>
|
||||
</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="#">EncodedBt2100HLG</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.b">b</a></li><li><a href="#structfield.g">g</a></li><li><a href="#structfield.r">r</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorStruct">ColorStruct</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CEncodedBt2100HLG%3CComponentTy%3E%3E%3E">From<Alpha<EncodedBt2100HLG<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CEncodedBt2100HLG%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CEncodedBt2100HLG%3CComponentTy%3E%3E">PartialEq<EncodedBt2100HLG<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CEncodedBt2100HLG%3CComponentTy%3E%3E">PartialOrd<EncodedBt2100HLG<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="EncodedBt2100HLG" 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">style</a>::<wbr><a class="struct" href="#">EncodedBt2100HLG</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 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><div class="code-attribute">#[repr(C)]</div>pub struct EncodedBt2100HLG<ComponentTy> {
|
||||
</a><h2 class="location"><a href="#">EncodedBt2100HLG</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.b">b</a></li><li><a href="#structfield.g">g</a></li><li><a href="#structfield.r">r</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E">AsMut<[ComponentTy; 3]></a></li><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorType">ColorType</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CEncodedBt2100HLG%3CComponentTy%3E%3E%3E">From<Alpha<EncodedBt2100HLG<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CEncodedBt2100HLG%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<EncodedBt2100HLG<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CEncodedBt2100HLG%3CComponentTy%3E%3E">PartialEq<EncodedBt2100HLG<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CEncodedBt2100HLG%3CComponentTy%3E%3E">PartialOrd<EncodedBt2100HLG<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="EncodedBt2100HLG" 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">style</a>::<wbr><a class="struct" href="#">EncodedBt2100HLG</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 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><div class="code-attribute">#[repr(C)]</div>pub struct EncodedBt2100HLG<ComponentTy = <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.f32.html">f32</a>> {
|
||||
pub r: ComponentTy,
|
||||
pub g: ComponentTy,
|
||||
pub b: ComponentTy,
|
||||
@ -15,13 +15,14 @@ the HLG transfer function. It is nonlinear.</p>
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.r" class="structfield small-section-header"><a href="#structfield.r" class="anchor field"></a><code>r: ComponentTy</code></span><div class="docblock"><p>The red component.</p>
|
||||
</div><span id="structfield.g" class="structfield small-section-header"><a href="#structfield.g" class="anchor field"></a><code>g: ComponentTy</code></span><div class="docblock"><p>The green component.</p>
|
||||
</div><span id="structfield.b" class="structfield small-section-header"><a href="#structfield.b" class="anchor field"></a><code>b: ComponentTy</code></span><div class="docblock"><p>The blue component.</p>
|
||||
</div><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-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.EncodedBt2100HLG.html" title="struct maplibre::style::EncodedBt2100HLG">EncodedBt2100HLG</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div><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-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.EncodedBt2100HLG.html" title="struct maplibre::style::EncodedBt2100HLG">EncodedBt2100HLG</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut" class="method trait-impl has-srclink"><a href="#method.as_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fnname">as_mut</a>(&mut self) -> &mut <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a mutable reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.EncodedBt2100HLG.html" title="struct maplibre::style::EncodedBt2100HLG">EncodedBt2100HLG</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.EncodedBt2100HLG.html" title="struct maplibre::style::EncodedBt2100HLG">EncodedBt2100HLG</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.EncodedBt2100HLG.html" title="struct maplibre::style::EncodedBt2100HLG">EncodedBt2100HLG</a><ComponentTy></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.0/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorStruct" class="impl has-srclink"><a href="#impl-ColorStruct" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorStruct.html" title="trait maplibre::style::ColorStruct">ColorStruct</a> for <a class="struct" href="struct.EncodedBt2100HLG.html" title="struct maplibre::style::EncodedBt2100HLG">EncodedBt2100HLG</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorStruct.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.EncodedBt2100HLG.html" title="struct maplibre::style::EncodedBt2100HLG">EncodedBt2100HLG</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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-ColorType" class="impl has-srclink"><a href="#impl-ColorType" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorType.html" title="trait maplibre::style::ColorType">ColorType</a> for <a class="struct" href="struct.EncodedBt2100HLG.html" title="struct maplibre::style::EncodedBt2100HLG">EncodedBt2100HLG</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorType.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section><section id="associatedconstant.SPACE" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.SPACE" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.SPACE" class="constant">SPACE</a>: <a class="enum" href="enum.Spaces.html" title="enum maplibre::style::Spaces">Spaces</a> = Spaces::EncodedBt2100HLG</h4></section><section id="associatedconstant.NUM_COMPONENTS" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.NUM_COMPONENTS" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.NUM_COMPONENTS" class="constant">NUM_COMPONENTS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.usize.html">usize</a> = 3usize</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.EncodedBt2100HLG.html" title="struct maplibre::style::EncodedBt2100HLG">EncodedBt2100HLG</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.EncodedBt2100HLG.html" title="struct maplibre::style::EncodedBt2100HLG">EncodedBt2100HLG</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.EncodedBt2100HLG.html" title="struct maplibre::style::EncodedBt2100HLG">EncodedBt2100HLG</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CEncodedBt2100HLG%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CEncodedBt2100HLG%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.62.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.EncodedBt2100HLG.html" title="struct maplibre::style::EncodedBt2100HLG">EncodedBt2100HLG</a><ComponentTy>>> for <a class="struct" href="struct.EncodedBt2100HLG.html" title="struct maplibre::style::EncodedBt2100HLG">EncodedBt2100HLG</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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" class="method trait-impl has-srclink"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.Alpha.html" title="struct maplibre::style::Alpha">Alpha</a><<a class="struct" href="struct.EncodedBt2100HLG.html" title="struct maplibre::style::EncodedBt2100HLG">EncodedBt2100HLG</a><ComponentTy>><br>) -> <a class="struct" href="struct.EncodedBt2100HLG.html" title="struct maplibre::style::EncodedBt2100HLG">EncodedBt2100HLG</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CEncodedBt2100HLG%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CEncodedBt2100HLG%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.EncodedBt2100HLG.html" title="struct maplibre::style::EncodedBt2100HLG">EncodedBt2100HLG</a><ComponentTy>>> for <a class="struct" href="struct.EncodedBt2100HLG.html" title="struct maplibre::style::EncodedBt2100HLG">EncodedBt2100HLG</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.EncodedBt2100HLG.html" title="struct maplibre::style::EncodedBt2100HLG">EncodedBt2100HLG</a><ComponentTy>><br>) -> <a class="struct" href="struct.EncodedBt2100HLG.html" title="struct maplibre::style::EncodedBt2100HLG">EncodedBt2100HLG</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CEncodedBt2100HLG%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CEncodedBt2100HLG%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.62.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.EncodedBt2100HLG.html" title="struct maplibre::style::EncodedBt2100HLG">EncodedBt2100HLG</a><ComponentTy>>> for <a class="struct" href="struct.EncodedBt2100HLG.html" title="struct maplibre::style::EncodedBt2100HLG">EncodedBt2100HLG</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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" class="method trait-impl has-srclink"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.Alpha.html" title="struct maplibre::style::Alpha">Alpha</a><<a class="struct" href="struct.EncodedBt2100HLG.html" title="struct maplibre::style::EncodedBt2100HLG">EncodedBt2100HLG</a><ComponentTy>><br>) -> <a class="struct" href="struct.EncodedBt2100HLG.html" title="struct maplibre::style::EncodedBt2100HLG">EncodedBt2100HLG</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CEncodedBt2100HLG%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CEncodedBt2100HLG%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.EncodedBt2100HLG.html" title="struct maplibre::style::EncodedBt2100HLG">EncodedBt2100HLG</a><ComponentTy>>> for <a class="struct" href="struct.EncodedBt2100HLG.html" title="struct maplibre::style::EncodedBt2100HLG">EncodedBt2100HLG</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.EncodedBt2100HLG.html" title="struct maplibre::style::EncodedBt2100HLG">EncodedBt2100HLG</a><ComponentTy>><br>) -> <a class="struct" href="struct.EncodedBt2100HLG.html" title="struct maplibre::style::EncodedBt2100HLG">EncodedBt2100HLG</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</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<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="struct.EncodedBt2100HLG.html" title="struct maplibre::style::EncodedBt2100HLG">EncodedBt2100HLG</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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">fn <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/std/primitive.slice.html">&[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/1.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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%203%5D%3E" class="impl has-srclink"><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.EncodedBt2100HLG.html" title="struct maplibre::style::EncodedBt2100HLG">EncodedBt2100HLG</a><ComponentTy></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">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into the (usually inferred) input type.</p>
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
</a><h2 class="location"></h2>
|
||||
</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="#">EncodedBt2100PQ</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.b">b</a></li><li><a href="#structfield.g">g</a></li><li><a href="#structfield.r">r</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorStruct">ColorStruct</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CEncodedBt2100PQ%3CComponentTy%3E%3E%3E">From<Alpha<EncodedBt2100PQ<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CEncodedBt2100PQ%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CEncodedBt2100PQ%3CComponentTy%3E%3E">PartialEq<EncodedBt2100PQ<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CEncodedBt2100PQ%3CComponentTy%3E%3E">PartialOrd<EncodedBt2100PQ<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="EncodedBt2100PQ" 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">style</a>::<wbr><a class="struct" href="#">EncodedBt2100PQ</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 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><div class="code-attribute">#[repr(C)]</div>pub struct EncodedBt2100PQ<ComponentTy> {
|
||||
</a><h2 class="location"><a href="#">EncodedBt2100PQ</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.b">b</a></li><li><a href="#structfield.g">g</a></li><li><a href="#structfield.r">r</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E">AsMut<[ComponentTy; 3]></a></li><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorType">ColorType</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CEncodedBt2100PQ%3CComponentTy%3E%3E%3E">From<Alpha<EncodedBt2100PQ<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CEncodedBt2100PQ%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<EncodedBt2100PQ<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CEncodedBt2100PQ%3CComponentTy%3E%3E">PartialEq<EncodedBt2100PQ<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CEncodedBt2100PQ%3CComponentTy%3E%3E">PartialOrd<EncodedBt2100PQ<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="EncodedBt2100PQ" 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">style</a>::<wbr><a class="struct" href="#">EncodedBt2100PQ</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 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><div class="code-attribute">#[repr(C)]</div>pub struct EncodedBt2100PQ<ComponentTy = <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.f32.html">f32</a>> {
|
||||
pub r: ComponentTy,
|
||||
pub g: ComponentTy,
|
||||
pub b: ComponentTy,
|
||||
@ -15,13 +15,14 @@ the ST 2084/“PQ” transfer function. It is nonlinear.</p>
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.r" class="structfield small-section-header"><a href="#structfield.r" class="anchor field"></a><code>r: ComponentTy</code></span><div class="docblock"><p>The red component.</p>
|
||||
</div><span id="structfield.g" class="structfield small-section-header"><a href="#structfield.g" class="anchor field"></a><code>g: ComponentTy</code></span><div class="docblock"><p>The green component.</p>
|
||||
</div><span id="structfield.b" class="structfield small-section-header"><a href="#structfield.b" class="anchor field"></a><code>b: ComponentTy</code></span><div class="docblock"><p>The blue component.</p>
|
||||
</div><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-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.EncodedBt2100PQ.html" title="struct maplibre::style::EncodedBt2100PQ">EncodedBt2100PQ</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div><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-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.EncodedBt2100PQ.html" title="struct maplibre::style::EncodedBt2100PQ">EncodedBt2100PQ</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut" class="method trait-impl has-srclink"><a href="#method.as_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fnname">as_mut</a>(&mut self) -> &mut <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a mutable reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.EncodedBt2100PQ.html" title="struct maplibre::style::EncodedBt2100PQ">EncodedBt2100PQ</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.EncodedBt2100PQ.html" title="struct maplibre::style::EncodedBt2100PQ">EncodedBt2100PQ</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.EncodedBt2100PQ.html" title="struct maplibre::style::EncodedBt2100PQ">EncodedBt2100PQ</a><ComponentTy></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.0/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorStruct" class="impl has-srclink"><a href="#impl-ColorStruct" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorStruct.html" title="trait maplibre::style::ColorStruct">ColorStruct</a> for <a class="struct" href="struct.EncodedBt2100PQ.html" title="struct maplibre::style::EncodedBt2100PQ">EncodedBt2100PQ</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorStruct.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.EncodedBt2100PQ.html" title="struct maplibre::style::EncodedBt2100PQ">EncodedBt2100PQ</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.EncodedBt2100PQ.html" title="struct maplibre::style::EncodedBt2100PQ">EncodedBt2100PQ</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.EncodedBt2100PQ.html" title="struct maplibre::style::EncodedBt2100PQ">EncodedBt2100PQ</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CEncodedBt2100PQ%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CEncodedBt2100PQ%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.62.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.EncodedBt2100PQ.html" title="struct maplibre::style::EncodedBt2100PQ">EncodedBt2100PQ</a><ComponentTy>>> for <a class="struct" href="struct.EncodedBt2100PQ.html" title="struct maplibre::style::EncodedBt2100PQ">EncodedBt2100PQ</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.Alpha.html" title="struct maplibre::style::Alpha">Alpha</a><<a class="struct" href="struct.EncodedBt2100PQ.html" title="struct maplibre::style::EncodedBt2100PQ">EncodedBt2100PQ</a><ComponentTy>><br>) -> <a class="struct" href="struct.EncodedBt2100PQ.html" title="struct maplibre::style::EncodedBt2100PQ">EncodedBt2100PQ</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CEncodedBt2100PQ%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CEncodedBt2100PQ%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.EncodedBt2100PQ.html" title="struct maplibre::style::EncodedBt2100PQ">EncodedBt2100PQ</a><ComponentTy>>> for <a class="struct" href="struct.EncodedBt2100PQ.html" title="struct maplibre::style::EncodedBt2100PQ">EncodedBt2100PQ</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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" class="method trait-impl has-srclink"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.EncodedBt2100PQ.html" title="struct maplibre::style::EncodedBt2100PQ">EncodedBt2100PQ</a><ComponentTy>><br>) -> <a class="struct" href="struct.EncodedBt2100PQ.html" title="struct maplibre::style::EncodedBt2100PQ">EncodedBt2100PQ</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorType" class="impl has-srclink"><a href="#impl-ColorType" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorType.html" title="trait maplibre::style::ColorType">ColorType</a> for <a class="struct" href="struct.EncodedBt2100PQ.html" title="struct maplibre::style::EncodedBt2100PQ">EncodedBt2100PQ</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorType.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section><section id="associatedconstant.SPACE" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.SPACE" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.SPACE" class="constant">SPACE</a>: <a class="enum" href="enum.Spaces.html" title="enum maplibre::style::Spaces">Spaces</a> = Spaces::EncodedBt2100PQ</h4></section><section id="associatedconstant.NUM_COMPONENTS" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.NUM_COMPONENTS" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.NUM_COMPONENTS" class="constant">NUM_COMPONENTS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.usize.html">usize</a> = 3usize</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.EncodedBt2100PQ.html" title="struct maplibre::style::EncodedBt2100PQ">EncodedBt2100PQ</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.EncodedBt2100PQ.html" title="struct maplibre::style::EncodedBt2100PQ">EncodedBt2100PQ</a><ComponentTy></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"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.EncodedBt2100PQ.html" title="struct maplibre::style::EncodedBt2100PQ">EncodedBt2100PQ</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CEncodedBt2100PQ%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CEncodedBt2100PQ%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.62.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.EncodedBt2100PQ.html" title="struct maplibre::style::EncodedBt2100PQ">EncodedBt2100PQ</a><ComponentTy>>> for <a class="struct" href="struct.EncodedBt2100PQ.html" title="struct maplibre::style::EncodedBt2100PQ">EncodedBt2100PQ</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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" class="method trait-impl has-srclink"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.Alpha.html" title="struct maplibre::style::Alpha">Alpha</a><<a class="struct" href="struct.EncodedBt2100PQ.html" title="struct maplibre::style::EncodedBt2100PQ">EncodedBt2100PQ</a><ComponentTy>><br>) -> <a class="struct" href="struct.EncodedBt2100PQ.html" title="struct maplibre::style::EncodedBt2100PQ">EncodedBt2100PQ</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CEncodedBt2100PQ%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CEncodedBt2100PQ%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.EncodedBt2100PQ.html" title="struct maplibre::style::EncodedBt2100PQ">EncodedBt2100PQ</a><ComponentTy>>> for <a class="struct" href="struct.EncodedBt2100PQ.html" title="struct maplibre::style::EncodedBt2100PQ">EncodedBt2100PQ</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.EncodedBt2100PQ.html" title="struct maplibre::style::EncodedBt2100PQ">EncodedBt2100PQ</a><ComponentTy>><br>) -> <a class="struct" href="struct.EncodedBt2100PQ.html" title="struct maplibre::style::EncodedBt2100PQ">EncodedBt2100PQ</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</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<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="struct.EncodedBt2100PQ.html" title="struct maplibre::style::EncodedBt2100PQ">EncodedBt2100PQ</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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">fn <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/std/primitive.slice.html">&[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/1.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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%203%5D%3E" class="impl has-srclink"><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.EncodedBt2100PQ.html" title="struct maplibre::style::EncodedBt2100PQ">EncodedBt2100PQ</a><ComponentTy></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">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into the (usually inferred) input type.</p>
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
</a><h2 class="location"></h2>
|
||||
</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="#">EncodedDisplayP3</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.b">b</a></li><li><a href="#structfield.g">g</a></li><li><a href="#structfield.r">r</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorStruct">ColorStruct</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CEncodedDisplayP3%3CComponentTy%3E%3E%3E">From<Alpha<EncodedDisplayP3<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CEncodedDisplayP3%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CEncodedDisplayP3%3CComponentTy%3E%3E">PartialEq<EncodedDisplayP3<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CEncodedDisplayP3%3CComponentTy%3E%3E">PartialOrd<EncodedDisplayP3<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="EncodedDisplayP3" 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">style</a>::<wbr><a class="struct" href="#">EncodedDisplayP3</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 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><div class="code-attribute">#[repr(C)]</div>pub struct EncodedDisplayP3<ComponentTy> {
|
||||
</a><h2 class="location"><a href="#">EncodedDisplayP3</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.b">b</a></li><li><a href="#structfield.g">g</a></li><li><a href="#structfield.r">r</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E">AsMut<[ComponentTy; 3]></a></li><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorType">ColorType</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CEncodedDisplayP3%3CComponentTy%3E%3E%3E">From<Alpha<EncodedDisplayP3<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CEncodedDisplayP3%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<EncodedDisplayP3<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CEncodedDisplayP3%3CComponentTy%3E%3E">PartialEq<EncodedDisplayP3<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CEncodedDisplayP3%3CComponentTy%3E%3E">PartialOrd<EncodedDisplayP3<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="EncodedDisplayP3" 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">style</a>::<wbr><a class="struct" href="#">EncodedDisplayP3</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 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><div class="code-attribute">#[repr(C)]</div>pub struct EncodedDisplayP3<ComponentTy = <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.u8.html">u8</a>> {
|
||||
pub r: ComponentTy,
|
||||
pub g: ComponentTy,
|
||||
pub b: ComponentTy,
|
||||
@ -15,13 +15,14 @@ with the sRGB OETF applied.</p>
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.r" class="structfield small-section-header"><a href="#structfield.r" class="anchor field"></a><code>r: ComponentTy</code></span><div class="docblock"><p>The red component.</p>
|
||||
</div><span id="structfield.g" class="structfield small-section-header"><a href="#structfield.g" class="anchor field"></a><code>g: ComponentTy</code></span><div class="docblock"><p>The green component.</p>
|
||||
</div><span id="structfield.b" class="structfield small-section-header"><a href="#structfield.b" class="anchor field"></a><code>b: ComponentTy</code></span><div class="docblock"><p>The blue component.</p>
|
||||
</div><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-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.EncodedDisplayP3.html" title="struct maplibre::style::EncodedDisplayP3">EncodedDisplayP3</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div><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-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.EncodedDisplayP3.html" title="struct maplibre::style::EncodedDisplayP3">EncodedDisplayP3</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut" class="method trait-impl has-srclink"><a href="#method.as_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fnname">as_mut</a>(&mut self) -> &mut <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a mutable reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.EncodedDisplayP3.html" title="struct maplibre::style::EncodedDisplayP3">EncodedDisplayP3</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.EncodedDisplayP3.html" title="struct maplibre::style::EncodedDisplayP3">EncodedDisplayP3</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.EncodedDisplayP3.html" title="struct maplibre::style::EncodedDisplayP3">EncodedDisplayP3</a><ComponentTy></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.0/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorStruct" class="impl has-srclink"><a href="#impl-ColorStruct" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorStruct.html" title="trait maplibre::style::ColorStruct">ColorStruct</a> for <a class="struct" href="struct.EncodedDisplayP3.html" title="struct maplibre::style::EncodedDisplayP3">EncodedDisplayP3</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorStruct.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.EncodedDisplayP3.html" title="struct maplibre::style::EncodedDisplayP3">EncodedDisplayP3</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.EncodedDisplayP3.html" title="struct maplibre::style::EncodedDisplayP3">EncodedDisplayP3</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.EncodedDisplayP3.html" title="struct maplibre::style::EncodedDisplayP3">EncodedDisplayP3</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CEncodedDisplayP3%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CEncodedDisplayP3%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.62.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.EncodedDisplayP3.html" title="struct maplibre::style::EncodedDisplayP3">EncodedDisplayP3</a><ComponentTy>>> for <a class="struct" href="struct.EncodedDisplayP3.html" title="struct maplibre::style::EncodedDisplayP3">EncodedDisplayP3</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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" class="method trait-impl has-srclink"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.Alpha.html" title="struct maplibre::style::Alpha">Alpha</a><<a class="struct" href="struct.EncodedDisplayP3.html" title="struct maplibre::style::EncodedDisplayP3">EncodedDisplayP3</a><ComponentTy>><br>) -> <a class="struct" href="struct.EncodedDisplayP3.html" title="struct maplibre::style::EncodedDisplayP3">EncodedDisplayP3</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CEncodedDisplayP3%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CEncodedDisplayP3%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.EncodedDisplayP3.html" title="struct maplibre::style::EncodedDisplayP3">EncodedDisplayP3</a><ComponentTy>>> for <a class="struct" href="struct.EncodedDisplayP3.html" title="struct maplibre::style::EncodedDisplayP3">EncodedDisplayP3</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.EncodedDisplayP3.html" title="struct maplibre::style::EncodedDisplayP3">EncodedDisplayP3</a><ComponentTy>><br>) -> <a class="struct" href="struct.EncodedDisplayP3.html" title="struct maplibre::style::EncodedDisplayP3">EncodedDisplayP3</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorType" class="impl has-srclink"><a href="#impl-ColorType" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorType.html" title="trait maplibre::style::ColorType">ColorType</a> for <a class="struct" href="struct.EncodedDisplayP3.html" title="struct maplibre::style::EncodedDisplayP3">EncodedDisplayP3</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorType.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section><section id="associatedconstant.SPACE" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.SPACE" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.SPACE" class="constant">SPACE</a>: <a class="enum" href="enum.Spaces.html" title="enum maplibre::style::Spaces">Spaces</a> = Spaces::EncodedDisplayP3</h4></section><section id="associatedconstant.NUM_COMPONENTS" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.NUM_COMPONENTS" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.NUM_COMPONENTS" class="constant">NUM_COMPONENTS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.usize.html">usize</a> = 3usize</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.EncodedDisplayP3.html" title="struct maplibre::style::EncodedDisplayP3">EncodedDisplayP3</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.EncodedDisplayP3.html" title="struct maplibre::style::EncodedDisplayP3">EncodedDisplayP3</a><ComponentTy></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"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.EncodedDisplayP3.html" title="struct maplibre::style::EncodedDisplayP3">EncodedDisplayP3</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CEncodedDisplayP3%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CEncodedDisplayP3%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.62.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.EncodedDisplayP3.html" title="struct maplibre::style::EncodedDisplayP3">EncodedDisplayP3</a><ComponentTy>>> for <a class="struct" href="struct.EncodedDisplayP3.html" title="struct maplibre::style::EncodedDisplayP3">EncodedDisplayP3</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.Alpha.html" title="struct maplibre::style::Alpha">Alpha</a><<a class="struct" href="struct.EncodedDisplayP3.html" title="struct maplibre::style::EncodedDisplayP3">EncodedDisplayP3</a><ComponentTy>><br>) -> <a class="struct" href="struct.EncodedDisplayP3.html" title="struct maplibre::style::EncodedDisplayP3">EncodedDisplayP3</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CEncodedDisplayP3%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CEncodedDisplayP3%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.EncodedDisplayP3.html" title="struct maplibre::style::EncodedDisplayP3">EncodedDisplayP3</a><ComponentTy>>> for <a class="struct" href="struct.EncodedDisplayP3.html" title="struct maplibre::style::EncodedDisplayP3">EncodedDisplayP3</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.EncodedDisplayP3.html" title="struct maplibre::style::EncodedDisplayP3">EncodedDisplayP3</a><ComponentTy>><br>) -> <a class="struct" href="struct.EncodedDisplayP3.html" title="struct maplibre::style::EncodedDisplayP3">EncodedDisplayP3</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</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<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="struct.EncodedDisplayP3.html" title="struct maplibre::style::EncodedDisplayP3">EncodedDisplayP3</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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">fn <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/std/primitive.slice.html">&[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/1.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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%203%5D%3E" class="impl has-srclink"><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.EncodedDisplayP3.html" title="struct maplibre::style::EncodedDisplayP3">EncodedDisplayP3</a><ComponentTy></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">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into the (usually inferred) input type.</p>
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
</a><h2 class="location"></h2>
|
||||
</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="#">EncodedRec709</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.b">b</a></li><li><a href="#structfield.g">g</a></li><li><a href="#structfield.r">r</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorStruct">ColorStruct</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CEncodedRec709%3CComponentTy%3E%3E%3E">From<Alpha<EncodedRec709<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CEncodedRec709%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<EncodedRec709<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CEncodedRec709%3CComponentTy%3E%3E">PartialEq<EncodedRec709<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CEncodedRec709%3CComponentTy%3E%3E">PartialOrd<EncodedRec709<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="EncodedRec709" 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">style</a>::<wbr><a class="struct" href="#">EncodedRec709</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 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><div class="code-attribute">#[repr(C)]</div>pub struct EncodedRec709<ComponentTy> {
|
||||
</a><h2 class="location"><a href="#">EncodedRec709</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.b">b</a></li><li><a href="#structfield.g">g</a></li><li><a href="#structfield.r">r</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E">AsMut<[ComponentTy; 3]></a></li><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorType">ColorType</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CEncodedRec709%3CComponentTy%3E%3E%3E">From<Alpha<EncodedRec709<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CEncodedRec709%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<EncodedRec709<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CEncodedRec709%3CComponentTy%3E%3E">PartialEq<EncodedRec709<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CEncodedRec709%3CComponentTy%3E%3E">PartialOrd<EncodedRec709<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="EncodedRec709" 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">style</a>::<wbr><a class="struct" href="#">EncodedRec709</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 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><div class="code-attribute">#[repr(C)]</div>pub struct EncodedRec709<ComponentTy = <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.u8.html">u8</a>> {
|
||||
pub r: ComponentTy,
|
||||
pub g: ComponentTy,
|
||||
pub b: ComponentTy,
|
||||
@ -15,13 +15,14 @@ BT.601 OETF applied.</p>
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.r" class="structfield small-section-header"><a href="#structfield.r" class="anchor field"></a><code>r: ComponentTy</code></span><div class="docblock"><p>The red component.</p>
|
||||
</div><span id="structfield.g" class="structfield small-section-header"><a href="#structfield.g" class="anchor field"></a><code>g: ComponentTy</code></span><div class="docblock"><p>The green component.</p>
|
||||
</div><span id="structfield.b" class="structfield small-section-header"><a href="#structfield.b" class="anchor field"></a><code>b: ComponentTy</code></span><div class="docblock"><p>The blue component.</p>
|
||||
</div><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-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.EncodedRec709.html" title="struct maplibre::style::EncodedRec709">EncodedRec709</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div><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-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.EncodedRec709.html" title="struct maplibre::style::EncodedRec709">EncodedRec709</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut" class="method trait-impl has-srclink"><a href="#method.as_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fnname">as_mut</a>(&mut self) -> &mut <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a mutable reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.EncodedRec709.html" title="struct maplibre::style::EncodedRec709">EncodedRec709</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.EncodedRec709.html" title="struct maplibre::style::EncodedRec709">EncodedRec709</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.EncodedRec709.html" title="struct maplibre::style::EncodedRec709">EncodedRec709</a><ComponentTy></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.0/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorStruct" class="impl has-srclink"><a href="#impl-ColorStruct" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorStruct.html" title="trait maplibre::style::ColorStruct">ColorStruct</a> for <a class="struct" href="struct.EncodedRec709.html" title="struct maplibre::style::EncodedRec709">EncodedRec709</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorStruct.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.EncodedRec709.html" title="struct maplibre::style::EncodedRec709">EncodedRec709</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.EncodedRec709.html" title="struct maplibre::style::EncodedRec709">EncodedRec709</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.EncodedRec709.html" title="struct maplibre::style::EncodedRec709">EncodedRec709</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CEncodedRec709%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CEncodedRec709%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.62.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.EncodedRec709.html" title="struct maplibre::style::EncodedRec709">EncodedRec709</a><ComponentTy>>> for <a class="struct" href="struct.EncodedRec709.html" title="struct maplibre::style::EncodedRec709">EncodedRec709</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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" class="method trait-impl has-srclink"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.Alpha.html" title="struct maplibre::style::Alpha">Alpha</a><<a class="struct" href="struct.EncodedRec709.html" title="struct maplibre::style::EncodedRec709">EncodedRec709</a><ComponentTy>><br>) -> <a class="struct" href="struct.EncodedRec709.html" title="struct maplibre::style::EncodedRec709">EncodedRec709</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CEncodedRec709%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CEncodedRec709%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.EncodedRec709.html" title="struct maplibre::style::EncodedRec709">EncodedRec709</a><ComponentTy>>> for <a class="struct" href="struct.EncodedRec709.html" title="struct maplibre::style::EncodedRec709">EncodedRec709</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.EncodedRec709.html" title="struct maplibre::style::EncodedRec709">EncodedRec709</a><ComponentTy>><br>) -> <a class="struct" href="struct.EncodedRec709.html" title="struct maplibre::style::EncodedRec709">EncodedRec709</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorType" class="impl has-srclink"><a href="#impl-ColorType" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorType.html" title="trait maplibre::style::ColorType">ColorType</a> for <a class="struct" href="struct.EncodedRec709.html" title="struct maplibre::style::EncodedRec709">EncodedRec709</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorType.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section><section id="associatedconstant.SPACE" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.SPACE" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.SPACE" class="constant">SPACE</a>: <a class="enum" href="enum.Spaces.html" title="enum maplibre::style::Spaces">Spaces</a> = Spaces::EncodedRec709</h4></section><section id="associatedconstant.NUM_COMPONENTS" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.NUM_COMPONENTS" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.NUM_COMPONENTS" class="constant">NUM_COMPONENTS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.usize.html">usize</a> = 3usize</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.EncodedRec709.html" title="struct maplibre::style::EncodedRec709">EncodedRec709</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.EncodedRec709.html" title="struct maplibre::style::EncodedRec709">EncodedRec709</a><ComponentTy></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"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.EncodedRec709.html" title="struct maplibre::style::EncodedRec709">EncodedRec709</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CEncodedRec709%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CEncodedRec709%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.62.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.EncodedRec709.html" title="struct maplibre::style::EncodedRec709">EncodedRec709</a><ComponentTy>>> for <a class="struct" href="struct.EncodedRec709.html" title="struct maplibre::style::EncodedRec709">EncodedRec709</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.Alpha.html" title="struct maplibre::style::Alpha">Alpha</a><<a class="struct" href="struct.EncodedRec709.html" title="struct maplibre::style::EncodedRec709">EncodedRec709</a><ComponentTy>><br>) -> <a class="struct" href="struct.EncodedRec709.html" title="struct maplibre::style::EncodedRec709">EncodedRec709</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CEncodedRec709%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CEncodedRec709%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.EncodedRec709.html" title="struct maplibre::style::EncodedRec709">EncodedRec709</a><ComponentTy>>> for <a class="struct" href="struct.EncodedRec709.html" title="struct maplibre::style::EncodedRec709">EncodedRec709</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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" class="method trait-impl has-srclink"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.EncodedRec709.html" title="struct maplibre::style::EncodedRec709">EncodedRec709</a><ComponentTy>><br>) -> <a class="struct" href="struct.EncodedRec709.html" title="struct maplibre::style::EncodedRec709">EncodedRec709</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</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<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="struct.EncodedRec709.html" title="struct maplibre::style::EncodedRec709">EncodedRec709</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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">fn <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/std/primitive.slice.html">&[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/1.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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%203%5D%3E" class="impl has-srclink"><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.EncodedRec709.html" title="struct maplibre::style::EncodedRec709">EncodedRec709</a><ComponentTy></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">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into the (usually inferred) input type.</p>
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
</a><h2 class="location"></h2>
|
||||
</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="#">EncodedSrgb</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.b">b</a></li><li><a href="#structfield.g">g</a></li><li><a href="#structfield.r">r</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorStruct">ColorStruct</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CEncodedSrgb%3CComponentTy%3E%3E%3E">From<Alpha<EncodedSrgb<ComponentTy>>></a></li><li><a href="#impl-From%3CColor%3E">From<Color></a></li><li><a href="#impl-From%3CColor%3E-1">From<Color></a></li><li><a href="#impl-From%3CColor%3E-2">From<Color></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CEncodedSrgb%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<EncodedSrgb<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CEncodedSrgb%3CComponentTy%3E%3E">PartialEq<EncodedSrgb<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CEncodedSrgb%3CComponentTy%3E%3E">PartialOrd<EncodedSrgb<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="EncodedSrgb" 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">style</a>::<wbr><a class="struct" href="#">EncodedSrgb</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 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><div class="code-attribute">#[repr(C)]</div>pub struct EncodedSrgb<ComponentTy> {
|
||||
</a><h2 class="location"><a href="#">EncodedSrgb</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.b">b</a></li><li><a href="#structfield.g">g</a></li><li><a href="#structfield.r">r</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E">AsMut<[ComponentTy; 3]></a></li><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorType">ColorType</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CEncodedSrgb%3CComponentTy%3E%3E%3E">From<Alpha<EncodedSrgb<ComponentTy>>></a></li><li><a href="#impl-From%3CColor%3E">From<Color></a></li><li><a href="#impl-From%3CColor%3E-1">From<Color></a></li><li><a href="#impl-From%3CColor%3E-2">From<Color></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CEncodedSrgb%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<EncodedSrgb<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CEncodedSrgb%3CComponentTy%3E%3E">PartialEq<EncodedSrgb<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CEncodedSrgb%3CComponentTy%3E%3E">PartialOrd<EncodedSrgb<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="EncodedSrgb" 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">style</a>::<wbr><a class="struct" href="#">EncodedSrgb</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 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><div class="code-attribute">#[repr(C)]</div>pub struct EncodedSrgb<ComponentTy = <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.u8.html">u8</a>> {
|
||||
pub r: ComponentTy,
|
||||
pub g: ComponentTy,
|
||||
pub b: ComponentTy,
|
||||
@ -15,16 +15,17 @@ sRGB OETF, aka “gamma compensation”, applied.</p>
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.r" class="structfield small-section-header"><a href="#structfield.r" class="anchor field"></a><code>r: ComponentTy</code></span><div class="docblock"><p>The red component.</p>
|
||||
</div><span id="structfield.g" class="structfield small-section-header"><a href="#structfield.g" class="anchor field"></a><code>g: ComponentTy</code></span><div class="docblock"><p>The green component.</p>
|
||||
</div><span id="structfield.b" class="structfield small-section-header"><a href="#structfield.b" class="anchor field"></a><code>b: ComponentTy</code></span><div class="docblock"><p>The blue component.</p>
|
||||
</div><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-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div><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-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut" class="method trait-impl has-srclink"><a href="#method.as_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fnname">as_mut</a>(&mut self) -> &mut <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a mutable reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><ComponentTy></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.0/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorStruct" class="impl has-srclink"><a href="#impl-ColorStruct" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorStruct.html" title="trait maplibre::style::ColorStruct">ColorStruct</a> for <a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorStruct.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><ComponentTy></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"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CEncodedSrgb%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CEncodedSrgb%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.62.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.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><ComponentTy>>> for <a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><ComponentTy>>) -> <a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><Color> for <a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.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-3" class="method trait-impl has-srclink"><a href="#method.from-3" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(c: Color) -> <a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.f32.html">f32</a>></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorType" class="impl has-srclink"><a href="#impl-ColorType" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorType.html" title="trait maplibre::style::ColorType">ColorType</a> for <a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorType.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section><section id="associatedconstant.SPACE" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.SPACE" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.SPACE" class="constant">SPACE</a>: <a class="enum" href="enum.Spaces.html" title="enum maplibre::style::Spaces">Spaces</a> = Spaces::EncodedSrgb</h4></section><section id="associatedconstant.NUM_COMPONENTS" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.NUM_COMPONENTS" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.NUM_COMPONENTS" class="constant">NUM_COMPONENTS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.usize.html">usize</a> = 3usize</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CEncodedSrgb%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CEncodedSrgb%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.62.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.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><ComponentTy>>> for <a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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" class="method trait-impl has-srclink"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><ComponentTy>>) -> <a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><Color> for <a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.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-3" class="method trait-impl has-srclink"><a href="#method.from-3" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(c: Color) -> <a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.f64.html">f64</a>></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><Color> for <a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.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-4" class="method trait-impl has-srclink"><a href="#method.from-4" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(c: Color) -> <a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.u8.html">u8</a>></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><Color> for <a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.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-5" class="method trait-impl has-srclink"><a href="#method.from-5" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(c: Color) -> <a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.f64.html">f64</a>></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CEncodedSrgb%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CEncodedSrgb%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><ComponentTy>>> for <a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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" class="method trait-impl has-srclink"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><ComponentTy>><br>) -> <a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><Color> for <a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.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-5" class="method trait-impl has-srclink"><a href="#method.from-5" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(c: Color) -> <a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.f32.html">f32</a>></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CEncodedSrgb%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CEncodedSrgb%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><ComponentTy>>> for <a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><ComponentTy>><br>) -> <a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</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<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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">fn <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/std/primitive.slice.html">&[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/1.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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%203%5D%3E" class="impl has-srclink"><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a><ComponentTy></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">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into the (usually inferred) input type.</p>
|
||||
|
||||
72
docs/api/maplibre/style/struct.GenericColor1.html
Normal file
72
docs/api/maplibre/style/struct.GenericColor1.html
Normal file
File diff suppressed because one or more lines are too long
76
docs/api/maplibre/style/struct.GenericColor3.html
Normal file
76
docs/api/maplibre/style/struct.GenericColor3.html
Normal file
File diff suppressed because one or more lines are too long
@ -3,8 +3,8 @@
|
||||
</a><h2 class="location"></h2>
|
||||
</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="#">Hsl</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.h">h</a></li><li><a href="#structfield.l">l</a></li><li><a href="#structfield.s">s</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorStruct">ColorStruct</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CHsl%3CComponentTy%3E%3E%3E">From<Alpha<Hsl<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CHsl%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<Hsl<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CHsl%3CComponentTy%3E%3E">PartialEq<Hsl<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CHsl%3CComponentTy%3E%3E">PartialOrd<Hsl<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="Hsl" 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">style</a>::<wbr><a class="struct" href="#">Hsl</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 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><div class="code-attribute">#[repr(C)]</div>pub struct Hsl<ComponentTy> {
|
||||
</a><h2 class="location"><a href="#">Hsl</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.h">h</a></li><li><a href="#structfield.l">l</a></li><li><a href="#structfield.s">s</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E">AsMut<[ComponentTy; 3]></a></li><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorType">ColorType</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CHsl%3CComponentTy%3E%3E%3E">From<Alpha<Hsl<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CHsl%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<Hsl<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CHsl%3CComponentTy%3E%3E">PartialEq<Hsl<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CHsl%3CComponentTy%3E%3E">PartialOrd<Hsl<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="Hsl" 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">style</a>::<wbr><a class="struct" href="#">Hsl</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 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><div class="code-attribute">#[repr(C)]</div>pub struct Hsl<ComponentTy = <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.f32.html">f32</a>> {
|
||||
pub h: ComponentTy,
|
||||
pub s: ComponentTy,
|
||||
pub l: ComponentTy,
|
||||
@ -15,13 +15,14 @@ the most common case.</p>
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.h" class="structfield small-section-header"><a href="#structfield.h" class="anchor field"></a><code>h: ComponentTy</code></span><div class="docblock"><p>The H (hue) component. Varies from 0 to 1.</p>
|
||||
</div><span id="structfield.s" class="structfield small-section-header"><a href="#structfield.s" class="anchor field"></a><code>s: ComponentTy</code></span><div class="docblock"><p>The S (saturation) component. Varies from 0 to 1.</p>
|
||||
</div><span id="structfield.l" class="structfield small-section-header"><a href="#structfield.l" class="anchor field"></a><code>l: ComponentTy</code></span><div class="docblock"><p>The L (lightness) component. Varies from 0 to 1.</p>
|
||||
</div><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-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Hsl.html" title="struct maplibre::style::Hsl">Hsl</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div><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-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Hsl.html" title="struct maplibre::style::Hsl">Hsl</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut" class="method trait-impl has-srclink"><a href="#method.as_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fnname">as_mut</a>(&mut self) -> &mut <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a mutable reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Hsl.html" title="struct maplibre::style::Hsl">Hsl</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.Hsl.html" title="struct maplibre::style::Hsl">Hsl</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.Hsl.html" title="struct maplibre::style::Hsl">Hsl</a><ComponentTy></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.0/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorStruct" class="impl has-srclink"><a href="#impl-ColorStruct" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorStruct.html" title="trait maplibre::style::ColorStruct">ColorStruct</a> for <a class="struct" href="struct.Hsl.html" title="struct maplibre::style::Hsl">Hsl</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorStruct.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.Hsl.html" title="struct maplibre::style::Hsl">Hsl</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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-ColorType" class="impl has-srclink"><a href="#impl-ColorType" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorType.html" title="trait maplibre::style::ColorType">ColorType</a> for <a class="struct" href="struct.Hsl.html" title="struct maplibre::style::Hsl">Hsl</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorType.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section><section id="associatedconstant.SPACE" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.SPACE" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.SPACE" class="constant">SPACE</a>: <a class="enum" href="enum.Spaces.html" title="enum maplibre::style::Spaces">Spaces</a> = Spaces::Hsl</h4></section><section id="associatedconstant.NUM_COMPONENTS" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.NUM_COMPONENTS" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.NUM_COMPONENTS" class="constant">NUM_COMPONENTS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.usize.html">usize</a> = 3usize</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.Hsl.html" title="struct maplibre::style::Hsl">Hsl</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Hsl.html" title="struct maplibre::style::Hsl">Hsl</a><ComponentTy></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"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.Hsl.html" title="struct maplibre::style::Hsl">Hsl</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CHsl%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CHsl%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.62.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.Hsl.html" title="struct maplibre::style::Hsl">Hsl</a><ComponentTy>>> for <a class="struct" href="struct.Hsl.html" title="struct maplibre::style::Hsl">Hsl</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.Hsl.html" title="struct maplibre::style::Hsl">Hsl</a><ComponentTy>>) -> <a class="struct" href="struct.Hsl.html" title="struct maplibre::style::Hsl">Hsl</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CHsl%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CHsl%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.Hsl.html" title="struct maplibre::style::Hsl">Hsl</a><ComponentTy>>> for <a class="struct" href="struct.Hsl.html" title="struct maplibre::style::Hsl">Hsl</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.Hsl.html" title="struct maplibre::style::Hsl">Hsl</a><ComponentTy>>) -> <a class="struct" href="struct.Hsl.html" title="struct maplibre::style::Hsl">Hsl</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CHsl%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CHsl%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.62.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.Hsl.html" title="struct maplibre::style::Hsl">Hsl</a><ComponentTy>>> for <a class="struct" href="struct.Hsl.html" title="struct maplibre::style::Hsl">Hsl</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.Hsl.html" title="struct maplibre::style::Hsl">Hsl</a><ComponentTy>>) -> <a class="struct" href="struct.Hsl.html" title="struct maplibre::style::Hsl">Hsl</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CHsl%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CHsl%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.Hsl.html" title="struct maplibre::style::Hsl">Hsl</a><ComponentTy>>> for <a class="struct" href="struct.Hsl.html" title="struct maplibre::style::Hsl">Hsl</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.Hsl.html" title="struct maplibre::style::Hsl">Hsl</a><ComponentTy>>) -> <a class="struct" href="struct.Hsl.html" title="struct maplibre::style::Hsl">Hsl</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</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<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="struct.Hsl.html" title="struct maplibre::style::Hsl">Hsl</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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">fn <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/std/primitive.slice.html">&[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/1.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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%203%5D%3E" class="impl has-srclink"><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Hsl.html" title="struct maplibre::style::Hsl">Hsl</a><ComponentTy></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">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into the (usually inferred) input type.</p>
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
</a><h2 class="location"></h2>
|
||||
</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="#">Hsv</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.h">h</a></li><li><a href="#structfield.s">s</a></li><li><a href="#structfield.v">v</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorStruct">ColorStruct</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CHsv%3CComponentTy%3E%3E%3E">From<Alpha<Hsv<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CHsv%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<Hsv<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CHsv%3CComponentTy%3E%3E">PartialEq<Hsv<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CHsv%3CComponentTy%3E%3E">PartialOrd<Hsv<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="Hsv" 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">style</a>::<wbr><a class="struct" href="#">Hsv</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 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><div class="code-attribute">#[repr(C)]</div>pub struct Hsv<ComponentTy> {
|
||||
</a><h2 class="location"><a href="#">Hsv</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.h">h</a></li><li><a href="#structfield.s">s</a></li><li><a href="#structfield.v">v</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E">AsMut<[ComponentTy; 3]></a></li><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorType">ColorType</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CHsv%3CComponentTy%3E%3E%3E">From<Alpha<Hsv<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CHsv%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<Hsv<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CHsv%3CComponentTy%3E%3E">PartialEq<Hsv<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CHsv%3CComponentTy%3E%3E">PartialOrd<Hsv<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="Hsv" 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">style</a>::<wbr><a class="struct" href="#">Hsv</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 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><div class="code-attribute">#[repr(C)]</div>pub struct Hsv<ComponentTy = <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.f32.html">f32</a>> {
|
||||
pub h: ComponentTy,
|
||||
pub s: ComponentTy,
|
||||
pub v: ComponentTy,
|
||||
@ -15,13 +15,14 @@ the most common case.</p>
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.h" class="structfield small-section-header"><a href="#structfield.h" class="anchor field"></a><code>h: ComponentTy</code></span><div class="docblock"><p>The H (hue) component. Varies from 0 to 1.</p>
|
||||
</div><span id="structfield.s" class="structfield small-section-header"><a href="#structfield.s" class="anchor field"></a><code>s: ComponentTy</code></span><div class="docblock"><p>The S (saturation) component. Varies from 0 to 1.</p>
|
||||
</div><span id="structfield.v" class="structfield small-section-header"><a href="#structfield.v" class="anchor field"></a><code>v: ComponentTy</code></span><div class="docblock"><p>The V (value) component. Varies from 0 to 1.</p>
|
||||
</div><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-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Hsv.html" title="struct maplibre::style::Hsv">Hsv</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div><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-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Hsv.html" title="struct maplibre::style::Hsv">Hsv</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut" class="method trait-impl has-srclink"><a href="#method.as_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fnname">as_mut</a>(&mut self) -> &mut <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a mutable reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Hsv.html" title="struct maplibre::style::Hsv">Hsv</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.Hsv.html" title="struct maplibre::style::Hsv">Hsv</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.Hsv.html" title="struct maplibre::style::Hsv">Hsv</a><ComponentTy></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.0/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorStruct" class="impl has-srclink"><a href="#impl-ColorStruct" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorStruct.html" title="trait maplibre::style::ColorStruct">ColorStruct</a> for <a class="struct" href="struct.Hsv.html" title="struct maplibre::style::Hsv">Hsv</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorStruct.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.Hsv.html" title="struct maplibre::style::Hsv">Hsv</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Hsv.html" title="struct maplibre::style::Hsv">Hsv</a><ComponentTy></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"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.Hsv.html" title="struct maplibre::style::Hsv">Hsv</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CHsv%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CHsv%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.62.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.Hsv.html" title="struct maplibre::style::Hsv">Hsv</a><ComponentTy>>> for <a class="struct" href="struct.Hsv.html" title="struct maplibre::style::Hsv">Hsv</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.Hsv.html" title="struct maplibre::style::Hsv">Hsv</a><ComponentTy>>) -> <a class="struct" href="struct.Hsv.html" title="struct maplibre::style::Hsv">Hsv</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CHsv%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CHsv%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.Hsv.html" title="struct maplibre::style::Hsv">Hsv</a><ComponentTy>>> for <a class="struct" href="struct.Hsv.html" title="struct maplibre::style::Hsv">Hsv</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.Hsv.html" title="struct maplibre::style::Hsv">Hsv</a><ComponentTy>>) -> <a class="struct" href="struct.Hsv.html" title="struct maplibre::style::Hsv">Hsv</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorType" class="impl has-srclink"><a href="#impl-ColorType" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorType.html" title="trait maplibre::style::ColorType">ColorType</a> for <a class="struct" href="struct.Hsv.html" title="struct maplibre::style::Hsv">Hsv</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorType.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section><section id="associatedconstant.SPACE" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.SPACE" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.SPACE" class="constant">SPACE</a>: <a class="enum" href="enum.Spaces.html" title="enum maplibre::style::Spaces">Spaces</a> = Spaces::Hsv</h4></section><section id="associatedconstant.NUM_COMPONENTS" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.NUM_COMPONENTS" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.NUM_COMPONENTS" class="constant">NUM_COMPONENTS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.usize.html">usize</a> = 3usize</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.Hsv.html" title="struct maplibre::style::Hsv">Hsv</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Hsv.html" title="struct maplibre::style::Hsv">Hsv</a><ComponentTy></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"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.Hsv.html" title="struct maplibre::style::Hsv">Hsv</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CHsv%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CHsv%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.62.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.Hsv.html" title="struct maplibre::style::Hsv">Hsv</a><ComponentTy>>> for <a class="struct" href="struct.Hsv.html" title="struct maplibre::style::Hsv">Hsv</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.Hsv.html" title="struct maplibre::style::Hsv">Hsv</a><ComponentTy>>) -> <a class="struct" href="struct.Hsv.html" title="struct maplibre::style::Hsv">Hsv</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CHsv%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CHsv%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.Hsv.html" title="struct maplibre::style::Hsv">Hsv</a><ComponentTy>>> for <a class="struct" href="struct.Hsv.html" title="struct maplibre::style::Hsv">Hsv</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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" class="method trait-impl has-srclink"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.Hsv.html" title="struct maplibre::style::Hsv">Hsv</a><ComponentTy>>) -> <a class="struct" href="struct.Hsv.html" title="struct maplibre::style::Hsv">Hsv</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</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<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="struct.Hsv.html" title="struct maplibre::style::Hsv">Hsv</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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">fn <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/std/primitive.slice.html">&[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/1.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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%203%5D%3E" class="impl has-srclink"><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Hsv.html" title="struct maplibre::style::Hsv">Hsv</a><ComponentTy></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">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into the (usually inferred) input type.</p>
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
</a><h2 class="location"></h2>
|
||||
</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="#">ICtCpHLG</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.cp">cp</a></li><li><a href="#structfield.ct">ct</a></li><li><a href="#structfield.i">i</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorStruct">ColorStruct</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CICtCpHLG%3CComponentTy%3E%3E%3E">From<Alpha<ICtCpHLG<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CICtCpHLG%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<ICtCpHLG<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CICtCpHLG%3CComponentTy%3E%3E">PartialEq<ICtCpHLG<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CICtCpHLG%3CComponentTy%3E%3E">PartialOrd<ICtCpHLG<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="ICtCpHLG" 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">style</a>::<wbr><a class="struct" href="#">ICtCpHLG</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 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><div class="code-attribute">#[repr(C)]</div>pub struct ICtCpHLG<ComponentTy> {
|
||||
</a><h2 class="location"><a href="#">ICtCpHLG</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.cp">cp</a></li><li><a href="#structfield.ct">ct</a></li><li><a href="#structfield.i">i</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E">AsMut<[ComponentTy; 3]></a></li><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorType">ColorType</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CICtCpHLG%3CComponentTy%3E%3E%3E">From<Alpha<ICtCpHLG<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CICtCpHLG%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<ICtCpHLG<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CICtCpHLG%3CComponentTy%3E%3E">PartialEq<ICtCpHLG<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CICtCpHLG%3CComponentTy%3E%3E">PartialOrd<ICtCpHLG<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="ICtCpHLG" 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">style</a>::<wbr><a class="struct" href="#">ICtCpHLG</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 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><div class="code-attribute">#[repr(C)]</div>pub struct ICtCpHLG<ComponentTy = <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.f32.html">f32</a>> {
|
||||
pub i: ComponentTy,
|
||||
pub ct: ComponentTy,
|
||||
pub cp: ComponentTy,
|
||||
@ -16,13 +16,14 @@ space meant to more efficiently encode HDR content.</p>
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.i" class="structfield small-section-header"><a href="#structfield.i" class="anchor field"></a><code>i: ComponentTy</code></span><div class="docblock"><p>The I (intensity) component.</p>
|
||||
</div><span id="structfield.ct" class="structfield small-section-header"><a href="#structfield.ct" class="anchor field"></a><code>ct: ComponentTy</code></span><div class="docblock"><p>The Ct (chroma-tritan) component.</p>
|
||||
</div><span id="structfield.cp" class="structfield small-section-header"><a href="#structfield.cp" class="anchor field"></a><code>cp: ComponentTy</code></span><div class="docblock"><p>The Cp (chroma-protan) component.</p>
|
||||
</div><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-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.ICtCpHLG.html" title="struct maplibre::style::ICtCpHLG">ICtCpHLG</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div><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-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.ICtCpHLG.html" title="struct maplibre::style::ICtCpHLG">ICtCpHLG</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut" class="method trait-impl has-srclink"><a href="#method.as_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fnname">as_mut</a>(&mut self) -> &mut <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a mutable reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.ICtCpHLG.html" title="struct maplibre::style::ICtCpHLG">ICtCpHLG</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.ICtCpHLG.html" title="struct maplibre::style::ICtCpHLG">ICtCpHLG</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.ICtCpHLG.html" title="struct maplibre::style::ICtCpHLG">ICtCpHLG</a><ComponentTy></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.0/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorStruct" class="impl has-srclink"><a href="#impl-ColorStruct" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorStruct.html" title="trait maplibre::style::ColorStruct">ColorStruct</a> for <a class="struct" href="struct.ICtCpHLG.html" title="struct maplibre::style::ICtCpHLG">ICtCpHLG</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorStruct.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.ICtCpHLG.html" title="struct maplibre::style::ICtCpHLG">ICtCpHLG</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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-ColorType" class="impl has-srclink"><a href="#impl-ColorType" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorType.html" title="trait maplibre::style::ColorType">ColorType</a> for <a class="struct" href="struct.ICtCpHLG.html" title="struct maplibre::style::ICtCpHLG">ICtCpHLG</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorType.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section><section id="associatedconstant.SPACE" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.SPACE" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.SPACE" class="constant">SPACE</a>: <a class="enum" href="enum.Spaces.html" title="enum maplibre::style::Spaces">Spaces</a> = Spaces::ICtCpHLG</h4></section><section id="associatedconstant.NUM_COMPONENTS" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.NUM_COMPONENTS" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.NUM_COMPONENTS" class="constant">NUM_COMPONENTS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.usize.html">usize</a> = 3usize</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.ICtCpHLG.html" title="struct maplibre::style::ICtCpHLG">ICtCpHLG</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.ICtCpHLG.html" title="struct maplibre::style::ICtCpHLG">ICtCpHLG</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.ICtCpHLG.html" title="struct maplibre::style::ICtCpHLG">ICtCpHLG</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CICtCpHLG%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CICtCpHLG%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.62.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.ICtCpHLG.html" title="struct maplibre::style::ICtCpHLG">ICtCpHLG</a><ComponentTy>>> for <a class="struct" href="struct.ICtCpHLG.html" title="struct maplibre::style::ICtCpHLG">ICtCpHLG</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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" class="method trait-impl has-srclink"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.ICtCpHLG.html" title="struct maplibre::style::ICtCpHLG">ICtCpHLG</a><ComponentTy>>) -> <a class="struct" href="struct.ICtCpHLG.html" title="struct maplibre::style::ICtCpHLG">ICtCpHLG</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CICtCpHLG%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CICtCpHLG%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.ICtCpHLG.html" title="struct maplibre::style::ICtCpHLG">ICtCpHLG</a><ComponentTy>>> for <a class="struct" href="struct.ICtCpHLG.html" title="struct maplibre::style::ICtCpHLG">ICtCpHLG</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.ICtCpHLG.html" title="struct maplibre::style::ICtCpHLG">ICtCpHLG</a><ComponentTy>><br>) -> <a class="struct" href="struct.ICtCpHLG.html" title="struct maplibre::style::ICtCpHLG">ICtCpHLG</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CICtCpHLG%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CICtCpHLG%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.62.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.ICtCpHLG.html" title="struct maplibre::style::ICtCpHLG">ICtCpHLG</a><ComponentTy>>> for <a class="struct" href="struct.ICtCpHLG.html" title="struct maplibre::style::ICtCpHLG">ICtCpHLG</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.ICtCpHLG.html" title="struct maplibre::style::ICtCpHLG">ICtCpHLG</a><ComponentTy>>) -> <a class="struct" href="struct.ICtCpHLG.html" title="struct maplibre::style::ICtCpHLG">ICtCpHLG</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CICtCpHLG%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CICtCpHLG%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.ICtCpHLG.html" title="struct maplibre::style::ICtCpHLG">ICtCpHLG</a><ComponentTy>>> for <a class="struct" href="struct.ICtCpHLG.html" title="struct maplibre::style::ICtCpHLG">ICtCpHLG</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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" class="method trait-impl has-srclink"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.ICtCpHLG.html" title="struct maplibre::style::ICtCpHLG">ICtCpHLG</a><ComponentTy>><br>) -> <a class="struct" href="struct.ICtCpHLG.html" title="struct maplibre::style::ICtCpHLG">ICtCpHLG</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</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<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="struct.ICtCpHLG.html" title="struct maplibre::style::ICtCpHLG">ICtCpHLG</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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">fn <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/std/primitive.slice.html">&[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/1.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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%203%5D%3E" class="impl has-srclink"><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.ICtCpHLG.html" title="struct maplibre::style::ICtCpHLG">ICtCpHLG</a><ComponentTy></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">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into the (usually inferred) input type.</p>
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
</a><h2 class="location"></h2>
|
||||
</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="#">ICtCpPQ</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.cp">cp</a></li><li><a href="#structfield.ct">ct</a></li><li><a href="#structfield.i">i</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorStruct">ColorStruct</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CICtCpPQ%3CComponentTy%3E%3E%3E">From<Alpha<ICtCpPQ<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CICtCpPQ%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<ICtCpPQ<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CICtCpPQ%3CComponentTy%3E%3E">PartialEq<ICtCpPQ<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CICtCpPQ%3CComponentTy%3E%3E">PartialOrd<ICtCpPQ<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="ICtCpPQ" 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">style</a>::<wbr><a class="struct" href="#">ICtCpPQ</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 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><div class="code-attribute">#[repr(C)]</div>pub struct ICtCpPQ<ComponentTy> {
|
||||
</a><h2 class="location"><a href="#">ICtCpPQ</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.cp">cp</a></li><li><a href="#structfield.ct">ct</a></li><li><a href="#structfield.i">i</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E">AsMut<[ComponentTy; 3]></a></li><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorType">ColorType</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CICtCpPQ%3CComponentTy%3E%3E%3E">From<Alpha<ICtCpPQ<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CICtCpPQ%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<ICtCpPQ<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CICtCpPQ%3CComponentTy%3E%3E">PartialEq<ICtCpPQ<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CICtCpPQ%3CComponentTy%3E%3E">PartialOrd<ICtCpPQ<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="ICtCpPQ" 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">style</a>::<wbr><a class="struct" href="#">ICtCpPQ</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 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><div class="code-attribute">#[repr(C)]</div>pub struct ICtCpPQ<ComponentTy = <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.f32.html">f32</a>> {
|
||||
pub i: ComponentTy,
|
||||
pub ct: ComponentTy,
|
||||
pub cp: ComponentTy,
|
||||
@ -16,13 +16,14 @@ space meant to more efficiently encode HDR content.</p>
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.i" class="structfield small-section-header"><a href="#structfield.i" class="anchor field"></a><code>i: ComponentTy</code></span><div class="docblock"><p>The I (intensity) component.</p>
|
||||
</div><span id="structfield.ct" class="structfield small-section-header"><a href="#structfield.ct" class="anchor field"></a><code>ct: ComponentTy</code></span><div class="docblock"><p>The Ct (chroma-tritan) component.</p>
|
||||
</div><span id="structfield.cp" class="structfield small-section-header"><a href="#structfield.cp" class="anchor field"></a><code>cp: ComponentTy</code></span><div class="docblock"><p>The Cp (chroma-protan) component.</p>
|
||||
</div><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-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.ICtCpPQ.html" title="struct maplibre::style::ICtCpPQ">ICtCpPQ</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div><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-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.ICtCpPQ.html" title="struct maplibre::style::ICtCpPQ">ICtCpPQ</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut" class="method trait-impl has-srclink"><a href="#method.as_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fnname">as_mut</a>(&mut self) -> &mut <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a mutable reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.ICtCpPQ.html" title="struct maplibre::style::ICtCpPQ">ICtCpPQ</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.ICtCpPQ.html" title="struct maplibre::style::ICtCpPQ">ICtCpPQ</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.ICtCpPQ.html" title="struct maplibre::style::ICtCpPQ">ICtCpPQ</a><ComponentTy></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.0/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorStruct" class="impl has-srclink"><a href="#impl-ColorStruct" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorStruct.html" title="trait maplibre::style::ColorStruct">ColorStruct</a> for <a class="struct" href="struct.ICtCpPQ.html" title="struct maplibre::style::ICtCpPQ">ICtCpPQ</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorStruct.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.ICtCpPQ.html" title="struct maplibre::style::ICtCpPQ">ICtCpPQ</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.ICtCpPQ.html" title="struct maplibre::style::ICtCpPQ">ICtCpPQ</a><ComponentTy></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"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.ICtCpPQ.html" title="struct maplibre::style::ICtCpPQ">ICtCpPQ</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CICtCpPQ%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CICtCpPQ%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.62.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.ICtCpPQ.html" title="struct maplibre::style::ICtCpPQ">ICtCpPQ</a><ComponentTy>>> for <a class="struct" href="struct.ICtCpPQ.html" title="struct maplibre::style::ICtCpPQ">ICtCpPQ</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.ICtCpPQ.html" title="struct maplibre::style::ICtCpPQ">ICtCpPQ</a><ComponentTy>>) -> <a class="struct" href="struct.ICtCpPQ.html" title="struct maplibre::style::ICtCpPQ">ICtCpPQ</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CICtCpPQ%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CICtCpPQ%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.ICtCpPQ.html" title="struct maplibre::style::ICtCpPQ">ICtCpPQ</a><ComponentTy>>> for <a class="struct" href="struct.ICtCpPQ.html" title="struct maplibre::style::ICtCpPQ">ICtCpPQ</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.ICtCpPQ.html" title="struct maplibre::style::ICtCpPQ">ICtCpPQ</a><ComponentTy>><br>) -> <a class="struct" href="struct.ICtCpPQ.html" title="struct maplibre::style::ICtCpPQ">ICtCpPQ</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorType" class="impl has-srclink"><a href="#impl-ColorType" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorType.html" title="trait maplibre::style::ColorType">ColorType</a> for <a class="struct" href="struct.ICtCpPQ.html" title="struct maplibre::style::ICtCpPQ">ICtCpPQ</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorType.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section><section id="associatedconstant.SPACE" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.SPACE" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.SPACE" class="constant">SPACE</a>: <a class="enum" href="enum.Spaces.html" title="enum maplibre::style::Spaces">Spaces</a> = Spaces::ICtCpPQ</h4></section><section id="associatedconstant.NUM_COMPONENTS" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.NUM_COMPONENTS" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.NUM_COMPONENTS" class="constant">NUM_COMPONENTS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.usize.html">usize</a> = 3usize</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.ICtCpPQ.html" title="struct maplibre::style::ICtCpPQ">ICtCpPQ</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.ICtCpPQ.html" title="struct maplibre::style::ICtCpPQ">ICtCpPQ</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.ICtCpPQ.html" title="struct maplibre::style::ICtCpPQ">ICtCpPQ</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CICtCpPQ%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CICtCpPQ%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.62.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.ICtCpPQ.html" title="struct maplibre::style::ICtCpPQ">ICtCpPQ</a><ComponentTy>>> for <a class="struct" href="struct.ICtCpPQ.html" title="struct maplibre::style::ICtCpPQ">ICtCpPQ</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.ICtCpPQ.html" title="struct maplibre::style::ICtCpPQ">ICtCpPQ</a><ComponentTy>>) -> <a class="struct" href="struct.ICtCpPQ.html" title="struct maplibre::style::ICtCpPQ">ICtCpPQ</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CICtCpPQ%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CICtCpPQ%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.ICtCpPQ.html" title="struct maplibre::style::ICtCpPQ">ICtCpPQ</a><ComponentTy>>> for <a class="struct" href="struct.ICtCpPQ.html" title="struct maplibre::style::ICtCpPQ">ICtCpPQ</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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" class="method trait-impl has-srclink"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.ICtCpPQ.html" title="struct maplibre::style::ICtCpPQ">ICtCpPQ</a><ComponentTy>><br>) -> <a class="struct" href="struct.ICtCpPQ.html" title="struct maplibre::style::ICtCpPQ">ICtCpPQ</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</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<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="struct.ICtCpPQ.html" title="struct maplibre::style::ICtCpPQ">ICtCpPQ</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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">fn <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/std/primitive.slice.html">&[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/1.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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%203%5D%3E" class="impl has-srclink"><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.ICtCpPQ.html" title="struct maplibre::style::ICtCpPQ">ICtCpPQ</a><ComponentTy></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">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into the (usually inferred) input type.</p>
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
</a><h2 class="location"></h2>
|
||||
</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="#">LinearSrgb</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.b">b</a></li><li><a href="#structfield.g">g</a></li><li><a href="#structfield.r">r</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorStruct">ColorStruct</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CLinearSrgb%3CComponentTy%3E%3E%3E">From<Alpha<LinearSrgb<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CLinearSrgb%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<LinearSrgb<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CLinearSrgb%3CComponentTy%3E%3E">PartialEq<LinearSrgb<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CLinearSrgb%3CComponentTy%3E%3E">PartialOrd<LinearSrgb<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="LinearSrgb" 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">style</a>::<wbr><a class="struct" href="#">LinearSrgb</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 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><div class="code-attribute">#[repr(C)]</div>pub struct LinearSrgb<ComponentTy> {
|
||||
</a><h2 class="location"><a href="#">LinearSrgb</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.b">b</a></li><li><a href="#structfield.g">g</a></li><li><a href="#structfield.r">r</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E">AsMut<[ComponentTy; 3]></a></li><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorType">ColorType</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CLinearSrgb%3CComponentTy%3E%3E%3E">From<Alpha<LinearSrgb<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CLinearSrgb%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<LinearSrgb<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CLinearSrgb%3CComponentTy%3E%3E">PartialEq<LinearSrgb<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CLinearSrgb%3CComponentTy%3E%3E">PartialOrd<LinearSrgb<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="LinearSrgb" 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">style</a>::<wbr><a class="struct" href="#">LinearSrgb</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 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><div class="code-attribute">#[repr(C)]</div>pub struct LinearSrgb<ComponentTy = <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.f32.html">f32</a>> {
|
||||
pub r: ComponentTy,
|
||||
pub g: ComponentTy,
|
||||
pub b: ComponentTy,
|
||||
@ -16,13 +16,14 @@ decode it from <a href="struct.EncodedSrgb.html" title="EncodedSrgb"><code>Encod
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.r" class="structfield small-section-header"><a href="#structfield.r" class="anchor field"></a><code>r: ComponentTy</code></span><div class="docblock"><p>The red component.</p>
|
||||
</div><span id="structfield.g" class="structfield small-section-header"><a href="#structfield.g" class="anchor field"></a><code>g: ComponentTy</code></span><div class="docblock"><p>The green component.</p>
|
||||
</div><span id="structfield.b" class="structfield small-section-header"><a href="#structfield.b" class="anchor field"></a><code>b: ComponentTy</code></span><div class="docblock"><p>The blue component.</p>
|
||||
</div><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-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.LinearSrgb.html" title="struct maplibre::style::LinearSrgb">LinearSrgb</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div><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-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.LinearSrgb.html" title="struct maplibre::style::LinearSrgb">LinearSrgb</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut" class="method trait-impl has-srclink"><a href="#method.as_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fnname">as_mut</a>(&mut self) -> &mut <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a mutable reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.LinearSrgb.html" title="struct maplibre::style::LinearSrgb">LinearSrgb</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.LinearSrgb.html" title="struct maplibre::style::LinearSrgb">LinearSrgb</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.LinearSrgb.html" title="struct maplibre::style::LinearSrgb">LinearSrgb</a><ComponentTy></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.0/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorStruct" class="impl has-srclink"><a href="#impl-ColorStruct" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorStruct.html" title="trait maplibre::style::ColorStruct">ColorStruct</a> for <a class="struct" href="struct.LinearSrgb.html" title="struct maplibre::style::LinearSrgb">LinearSrgb</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorStruct.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.LinearSrgb.html" title="struct maplibre::style::LinearSrgb">LinearSrgb</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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-ColorType" class="impl has-srclink"><a href="#impl-ColorType" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorType.html" title="trait maplibre::style::ColorType">ColorType</a> for <a class="struct" href="struct.LinearSrgb.html" title="struct maplibre::style::LinearSrgb">LinearSrgb</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorType.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section><section id="associatedconstant.SPACE" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.SPACE" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.SPACE" class="constant">SPACE</a>: <a class="enum" href="enum.Spaces.html" title="enum maplibre::style::Spaces">Spaces</a> = Spaces::LinearSrgb</h4></section><section id="associatedconstant.NUM_COMPONENTS" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.NUM_COMPONENTS" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.NUM_COMPONENTS" class="constant">NUM_COMPONENTS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.usize.html">usize</a> = 3usize</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.LinearSrgb.html" title="struct maplibre::style::LinearSrgb">LinearSrgb</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.LinearSrgb.html" title="struct maplibre::style::LinearSrgb">LinearSrgb</a><ComponentTy></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"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.LinearSrgb.html" title="struct maplibre::style::LinearSrgb">LinearSrgb</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CLinearSrgb%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CLinearSrgb%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.62.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.LinearSrgb.html" title="struct maplibre::style::LinearSrgb">LinearSrgb</a><ComponentTy>>> for <a class="struct" href="struct.LinearSrgb.html" title="struct maplibre::style::LinearSrgb">LinearSrgb</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.LinearSrgb.html" title="struct maplibre::style::LinearSrgb">LinearSrgb</a><ComponentTy>>) -> <a class="struct" href="struct.LinearSrgb.html" title="struct maplibre::style::LinearSrgb">LinearSrgb</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CLinearSrgb%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CLinearSrgb%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.LinearSrgb.html" title="struct maplibre::style::LinearSrgb">LinearSrgb</a><ComponentTy>>> for <a class="struct" href="struct.LinearSrgb.html" title="struct maplibre::style::LinearSrgb">LinearSrgb</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.LinearSrgb.html" title="struct maplibre::style::LinearSrgb">LinearSrgb</a><ComponentTy>><br>) -> <a class="struct" href="struct.LinearSrgb.html" title="struct maplibre::style::LinearSrgb">LinearSrgb</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3CLinearSrgb%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3CLinearSrgb%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.62.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.LinearSrgb.html" title="struct maplibre::style::LinearSrgb">LinearSrgb</a><ComponentTy>>> for <a class="struct" href="struct.LinearSrgb.html" title="struct maplibre::style::LinearSrgb">LinearSrgb</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.LinearSrgb.html" title="struct maplibre::style::LinearSrgb">LinearSrgb</a><ComponentTy>>) -> <a class="struct" href="struct.LinearSrgb.html" title="struct maplibre::style::LinearSrgb">LinearSrgb</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CLinearSrgb%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3CLinearSrgb%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.LinearSrgb.html" title="struct maplibre::style::LinearSrgb">LinearSrgb</a><ComponentTy>>> for <a class="struct" href="struct.LinearSrgb.html" title="struct maplibre::style::LinearSrgb">LinearSrgb</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.LinearSrgb.html" title="struct maplibre::style::LinearSrgb">LinearSrgb</a><ComponentTy>><br>) -> <a class="struct" href="struct.LinearSrgb.html" title="struct maplibre::style::LinearSrgb">LinearSrgb</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</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<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="struct.LinearSrgb.html" title="struct maplibre::style::LinearSrgb">LinearSrgb</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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">fn <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/std/primitive.slice.html">&[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/1.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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%203%5D%3E" class="impl has-srclink"><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.LinearSrgb.html" title="struct maplibre::style::LinearSrgb">LinearSrgb</a><ComponentTy></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">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into the (usually inferred) input type.</p>
|
||||
|
||||
File diff suppressed because one or more lines are too long
71
docs/api/maplibre/style/struct.Luminance.html
Normal file
71
docs/api/maplibre/style/struct.Luminance.html
Normal file
File diff suppressed because one or more lines are too long
@ -3,8 +3,8 @@
|
||||
</a><h2 class="location"></h2>
|
||||
</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="#">Oklab</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.a">a</a></li><li><a href="#structfield.b">b</a></li><li><a href="#structfield.l">l</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorStruct">ColorStruct</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3COklab%3CComponentTy%3E%3E%3E">From<Alpha<Oklab<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3COklab%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<Oklab<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3COklab%3CComponentTy%3E%3E">PartialEq<Oklab<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3COklab%3CComponentTy%3E%3E">PartialOrd<Oklab<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="Oklab" 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">style</a>::<wbr><a class="struct" href="#">Oklab</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 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><div class="code-attribute">#[repr(C)]</div>pub struct Oklab<ComponentTy> {
|
||||
</a><h2 class="location"><a href="#">Oklab</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.a">a</a></li><li><a href="#structfield.b">b</a></li><li><a href="#structfield.l">l</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E">AsMut<[ComponentTy; 3]></a></li><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorType">ColorType</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3COklab%3CComponentTy%3E%3E%3E">From<Alpha<Oklab<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3COklab%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<Oklab<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3COklab%3CComponentTy%3E%3E">PartialEq<Oklab<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3COklab%3CComponentTy%3E%3E">PartialOrd<Oklab<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="Oklab" 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">style</a>::<wbr><a class="struct" href="#">Oklab</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 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><div class="code-attribute">#[repr(C)]</div>pub struct Oklab<ComponentTy = <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.f32.html">f32</a>> {
|
||||
pub l: ComponentTy,
|
||||
pub a: ComponentTy,
|
||||
pub b: ComponentTy,
|
||||
@ -12,13 +12,14 @@
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.l" class="structfield small-section-header"><a href="#structfield.l" class="anchor field"></a><code>l: ComponentTy</code></span><div class="docblock"><p>The L (lightness) component. Varies from 0 to 1</p>
|
||||
</div><span id="structfield.a" class="structfield small-section-header"><a href="#structfield.a" class="anchor field"></a><code>a: ComponentTy</code></span><div class="docblock"><p>The a component, representing green-red chroma difference.</p>
|
||||
</div><span id="structfield.b" class="structfield small-section-header"><a href="#structfield.b" class="anchor field"></a><code>b: ComponentTy</code></span><div class="docblock"><p>The b component, representing blue-yellow chroma difference.</p>
|
||||
</div><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-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Oklab.html" title="struct maplibre::style::Oklab">Oklab</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div><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-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Oklab.html" title="struct maplibre::style::Oklab">Oklab</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut" class="method trait-impl has-srclink"><a href="#method.as_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fnname">as_mut</a>(&mut self) -> &mut <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a mutable reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Oklab.html" title="struct maplibre::style::Oklab">Oklab</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.Oklab.html" title="struct maplibre::style::Oklab">Oklab</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.Oklab.html" title="struct maplibre::style::Oklab">Oklab</a><ComponentTy></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.0/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorStruct" class="impl has-srclink"><a href="#impl-ColorStruct" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorStruct.html" title="trait maplibre::style::ColorStruct">ColorStruct</a> for <a class="struct" href="struct.Oklab.html" title="struct maplibre::style::Oklab">Oklab</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorStruct.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.Oklab.html" title="struct maplibre::style::Oklab">Oklab</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Oklab.html" title="struct maplibre::style::Oklab">Oklab</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.Oklab.html" title="struct maplibre::style::Oklab">Oklab</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3COklab%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3COklab%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.62.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.Oklab.html" title="struct maplibre::style::Oklab">Oklab</a><ComponentTy>>> for <a class="struct" href="struct.Oklab.html" title="struct maplibre::style::Oklab">Oklab</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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" class="method trait-impl has-srclink"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.Oklab.html" title="struct maplibre::style::Oklab">Oklab</a><ComponentTy>>) -> <a class="struct" href="struct.Oklab.html" title="struct maplibre::style::Oklab">Oklab</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3COklab%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3COklab%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.Oklab.html" title="struct maplibre::style::Oklab">Oklab</a><ComponentTy>>> for <a class="struct" href="struct.Oklab.html" title="struct maplibre::style::Oklab">Oklab</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.Oklab.html" title="struct maplibre::style::Oklab">Oklab</a><ComponentTy>>) -> <a class="struct" href="struct.Oklab.html" title="struct maplibre::style::Oklab">Oklab</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorType" class="impl has-srclink"><a href="#impl-ColorType" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorType.html" title="trait maplibre::style::ColorType">ColorType</a> for <a class="struct" href="struct.Oklab.html" title="struct maplibre::style::Oklab">Oklab</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorType.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section><section id="associatedconstant.SPACE" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.SPACE" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.SPACE" class="constant">SPACE</a>: <a class="enum" href="enum.Spaces.html" title="enum maplibre::style::Spaces">Spaces</a> = Spaces::Oklab</h4></section><section id="associatedconstant.NUM_COMPONENTS" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.NUM_COMPONENTS" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.NUM_COMPONENTS" class="constant">NUM_COMPONENTS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.usize.html">usize</a> = 3usize</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.Oklab.html" title="struct maplibre::style::Oklab">Oklab</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Oklab.html" title="struct maplibre::style::Oklab">Oklab</a><ComponentTy></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"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.Oklab.html" title="struct maplibre::style::Oklab">Oklab</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAlpha%3COklab%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CAlpha%3COklab%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.62.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.Oklab.html" title="struct maplibre::style::Oklab">Oklab</a><ComponentTy>>> for <a class="struct" href="struct.Oklab.html" title="struct maplibre::style::Oklab">Oklab</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.Oklab.html" title="struct maplibre::style::Oklab">Oklab</a><ComponentTy>>) -> <a class="struct" href="struct.Oklab.html" title="struct maplibre::style::Oklab">Oklab</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3COklab%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%3COklab%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.Oklab.html" title="struct maplibre::style::Oklab">Oklab</a><ComponentTy>>> for <a class="struct" href="struct.Oklab.html" title="struct maplibre::style::Oklab">Oklab</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.Oklab.html" title="struct maplibre::style::Oklab">Oklab</a><ComponentTy>>) -> <a class="struct" href="struct.Oklab.html" title="struct maplibre::style::Oklab">Oklab</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</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<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="struct.Oklab.html" title="struct maplibre::style::Oklab">Oklab</a><ComponentTy> <span class="where fmt-newline">where<br> ComponentTy: <a class="trait" href="https://doc.rust-lang.org/1.62.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">fn <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/std/primitive.slice.html">&[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/1.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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%203%5D%3E" class="impl has-srclink"><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Oklab.html" title="struct maplibre::style::Oklab">Oklab</a><ComponentTy></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">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into the (usually inferred) input type.</p>
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
</a><h2 class="location"></h2>
|
||||
</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="#">Oklch</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.c">c</a></li><li><a href="#structfield.h">h</a></li><li><a href="#structfield.l">l</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorStruct">ColorStruct</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3COklch%3CComponentTy%3E%3E%3E">From<Alpha<Oklch<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3COklch%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<Oklch<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3COklch%3CComponentTy%3E%3E">PartialEq<Oklch<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3COklch%3CComponentTy%3E%3E">PartialOrd<Oklch<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="Oklch" 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">style</a>::<wbr><a class="struct" href="#">Oklch</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 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><div class="code-attribute">#[repr(C)]</div>pub struct Oklch<ComponentTy> {
|
||||
</a><h2 class="location"><a href="#">Oklch</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.c">c</a></li><li><a href="#structfield.h">h</a></li><li><a href="#structfield.l">l</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E">AsMut<[ComponentTy; 3]></a></li><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorType">ColorType</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3COklch%3CComponentTy%3E%3E%3E">From<Alpha<Oklch<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3COklch%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<Oklch<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3COklch%3CComponentTy%3E%3E">PartialEq<Oklch<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3COklch%3CComponentTy%3E%3E">PartialOrd<Oklch<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="Oklch" 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">style</a>::<wbr><a class="struct" href="#">Oklch</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 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><div class="code-attribute">#[repr(C)]</div>pub struct Oklch<ComponentTy = <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.f32.html">f32</a>> {
|
||||
pub l: ComponentTy,
|
||||
pub c: ComponentTy,
|
||||
pub h: ComponentTy,
|
||||
@ -12,13 +12,14 @@
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.l" class="structfield small-section-header"><a href="#structfield.l" class="anchor field"></a><code>l: ComponentTy</code></span><div class="docblock"><p>The L (lightness) component. Varies from 0 to 1.</p>
|
||||
</div><span id="structfield.c" class="structfield small-section-header"><a href="#structfield.c" class="anchor field"></a><code>c: ComponentTy</code></span><div class="docblock"><p>The C (chroma) component. Varies from 0 to a hue dependent maximum.</p>
|
||||
</div><span id="structfield.h" class="structfield small-section-header"><a href="#structfield.h" class="anchor field"></a><code>h: ComponentTy</code></span><div class="docblock"><p>The h (hue) component. Varies from -PI to PI.</p>
|
||||
</div><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-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Oklch.html" title="struct maplibre::style::Oklch">Oklch</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div><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-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Oklch.html" title="struct maplibre::style::Oklch">Oklch</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut" class="method trait-impl has-srclink"><a href="#method.as_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fnname">as_mut</a>(&mut self) -> &mut <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a mutable reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Oklch.html" title="struct maplibre::style::Oklch">Oklch</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> 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.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.Oklch.html" title="struct maplibre::style::Oklch">Oklch</a><ComponentTy></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.0/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorStruct" class="impl has-srclink"><a href="#impl-ColorStruct" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorStruct.html" title="trait maplibre::style::ColorStruct">ColorStruct</a> for <a class="struct" href="struct.Oklch.html" title="struct maplibre::style::Oklch">Oklch</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorStruct.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> 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.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Oklch.html" title="struct maplibre::style::Oklch">Oklch</a><ComponentTy></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"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.Oklch.html" title="struct maplibre::style::Oklch">Oklch</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</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.62.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.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3COklch%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</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.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</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>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorType" class="impl has-srclink"><a href="#impl-ColorType" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorType.html" title="trait maplibre::style::ColorType">ColorType</a> for <a class="struct" href="struct.Oklch.html" title="struct maplibre::style::Oklch">Oklch</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorType.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section><section id="associatedconstant.SPACE" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.SPACE" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.SPACE" class="constant">SPACE</a>: <a class="enum" href="enum.Spaces.html" title="enum maplibre::style::Spaces">Spaces</a> = Spaces::Oklch</h4></section><section id="associatedconstant.NUM_COMPONENTS" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.NUM_COMPONENTS" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.NUM_COMPONENTS" class="constant">NUM_COMPONENTS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.usize.html">usize</a> = 3usize</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> 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.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Oklch.html" title="struct maplibre::style::Oklch">Oklch</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.Oklch.html" title="struct maplibre::style::Oklch">Oklch</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</p>
|
||||
</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.62.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.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3COklch%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</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.62.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" class="method trait-impl has-srclink"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</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>Converts to this type from the input type.</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<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> 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.62.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">fn <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/std/primitive.slice.html">&[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/1.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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%203%5D%3E" class="impl has-srclink"><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Oklch.html" title="struct maplibre::style::Oklch">Oklch</a><ComponentTy></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">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into the (usually inferred) input type.</p>
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -3,8 +3,8 @@
|
||||
</a><h2 class="location"></h2>
|
||||
</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="#">Rec709</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.b">b</a></li><li><a href="#structfield.g">g</a></li><li><a href="#structfield.r">r</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorStruct">ColorStruct</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CRec709%3CComponentTy%3E%3E%3E">From<Alpha<Rec709<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CRec709%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<Rec709<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CRec709%3CComponentTy%3E%3E">PartialEq<Rec709<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CRec709%3CComponentTy%3E%3E">PartialOrd<Rec709<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="Rec709" 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">style</a>::<wbr><a class="struct" href="#">Rec709</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 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><div class="code-attribute">#[repr(C)]</div>pub struct Rec709<ComponentTy> {
|
||||
</a><h2 class="location"><a href="#">Rec709</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.b">b</a></li><li><a href="#structfield.g">g</a></li><li><a href="#structfield.r">r</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E">AsMut<[ComponentTy; 3]></a></li><li><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E">AsRef<[ComponentTy; 3]></a></li><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-ColorType">ColorType</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-Eq">Eq</a></li><li><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E">From<[ComponentTy; 3]></a></li><li><a href="#impl-From%3CAlpha%3CRec709%3CComponentTy%3E%3E%3E">From<Alpha<Rec709<ComponentTy>>></a></li><li><a href="#impl-From%3CPremultipliedAlpha%3CRec709%3CComponentTy%3E%3E%3E">From<PremultipliedAlpha<Rec709<ComponentTy>>></a></li><li><a href="#impl-Hash">Hash</a></li><li><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E">Into<[ComponentTy; 3]></a></li><li><a href="#impl-Ord">Ord</a></li><li><a href="#impl-PartialEq%3CRec709%3CComponentTy%3E%3E">PartialEq<Rec709<ComponentTy>></a></li><li><a href="#impl-PartialOrd%3CRec709%3CComponentTy%3E%3E">PartialOrd<Rec709<ComponentTy>></a></li><li><a href="#impl-StructuralEq">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq">StructuralPartialEq</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-CallHasher">CallHasher</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-DynEq">DynEq</a></li><li><a href="#impl-DynHash">DynHash</a></li><li><a href="#impl-Equivalent%3CK%3E">Equivalent<K></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-ToOwned">ToOwned</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::style</a></h2><div id="sidebar-vars" data-name="Rec709" 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">style</a>::<wbr><a class="struct" href="#">Rec709</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 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><div class="code-attribute">#[repr(C)]</div>pub struct Rec709<ComponentTy = <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.f32.html">f32</a>> {
|
||||
pub r: ComponentTy,
|
||||
pub g: ComponentTy,
|
||||
pub b: ComponentTy,
|
||||
@ -15,13 +15,14 @@ BT.601 OETF applied.</p>
|
||||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.r" class="structfield small-section-header"><a href="#structfield.r" class="anchor field"></a><code>r: ComponentTy</code></span><div class="docblock"><p>The red component.</p>
|
||||
</div><span id="structfield.g" class="structfield small-section-header"><a href="#structfield.g" class="anchor field"></a><code>g: ComponentTy</code></span><div class="docblock"><p>The green component.</p>
|
||||
</div><span id="structfield.b" class="structfield small-section-header"><a href="#structfield.b" class="anchor field"></a><code>b: ComponentTy</code></span><div class="docblock"><p>The blue component.</p>
|
||||
</div><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-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Rec709.html" title="struct maplibre::style::Rec709">Rec709</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div><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-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsMut%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Rec709.html" title="struct maplibre::style::Rec709">Rec709</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_mut" class="method trait-impl has-srclink"><a href="#method.as_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsMut.html#tymethod.as_mut" class="fnname">as_mut</a>(&mut self) -> &mut <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a mutable reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-AsRef%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Rec709.html" title="struct maplibre::style::Rec709">Rec709</a><ComponentTy></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> 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.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.Rec709.html" title="struct maplibre::style::Rec709">Rec709</a><ComponentTy></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.0/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-ColorStruct" class="impl has-srclink"><a href="#impl-ColorStruct" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorStruct.html" title="trait maplibre::style::ColorStruct">ColorStruct</a> for <a class="struct" href="struct.Rec709.html" title="struct maplibre::style::Rec709">Rec709</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorStruct.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> 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.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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-ColorType" class="impl has-srclink"><a href="#impl-ColorType" class="anchor"></a><h3 class="code-header in-band">impl<CTy> <a class="trait" href="trait.ColorType.html" title="trait maplibre::style::ColorType">ColorType</a> for <a class="struct" href="struct.Rec709.html" title="struct maplibre::style::Rec709">Rec709</a><CTy> <span class="where fmt-newline">where<br> CTy: <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></h3></section></summary><div class="impl-items"><section id="associatedtype.ComponentTy" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.ComponentTy" class="anchor"></a><h4 class="code-header">type <a href="trait.ColorType.html#associatedtype.ComponentTy" class="associatedtype">ComponentTy</a> = CTy</h4></section><section id="associatedconstant.SPACE" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.SPACE" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.SPACE" class="constant">SPACE</a>: <a class="enum" href="enum.Spaces.html" title="enum maplibre::style::Spaces">Spaces</a> = Spaces::Rec709</h4></section><section id="associatedconstant.NUM_COMPONENTS" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.NUM_COMPONENTS" class="anchor"></a><h4 class="code-header">const <a href="trait.ColorType.html#associatedconstant.NUM_COMPONENTS" class="constant">NUM_COMPONENTS</a>: <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.usize.html">usize</a> = 3usize</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> 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.62.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></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"><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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.62.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.62.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.0/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.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%3C%5BComponentTy%3B%203%5D%3E" class="impl has-srclink"><a href="#impl-From%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Rec709.html" title="struct maplibre::style::Rec709">Rec709</a><ComponentTy></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"><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>) -> <a class="struct" href="struct.Rec709.html" title="struct maplibre::style::Rec709">Rec709</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</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.62.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.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CRec709%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</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.62.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.Rec709.html" title="struct maplibre::style::Rec709">Rec709</a><ComponentTy>><br>) -> <a class="struct" href="struct.Rec709.html" title="struct maplibre::style::Rec709">Rec709</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</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.62.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.62.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-1" class="method trait-impl has-srclink"><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.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>Converts to this type from the input type.</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPremultipliedAlpha%3CRec709%3CComponentTy%3E%3E%3E" class="impl has-srclink"><a href="#impl-From%3CPremultipliedAlpha%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.62.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</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.62.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-2" class="method trait-impl has-srclink"><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(<br> col_alpha: <a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a><<a class="struct" href="struct.Rec709.html" title="struct maplibre::style::Rec709">Rec709</a><ComponentTy>><br>) -> <a class="struct" href="struct.Rec709.html" title="struct maplibre::style::Rec709">Rec709</a><ComponentTy></h4></section></summary><div class='docblock'><p>Converts to this type from the input type.</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<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> 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.62.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">fn <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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.62.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.62.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.62.0/std/primitive.slice.html">&[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/1.62.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.62.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.62.0/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/1.62.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%203%5D%3E" class="impl has-srclink"><a href="#impl-Into%3C%5BComponentTy%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">impl<ComponentTy> <a class="trait" href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a>> for <a class="struct" href="struct.Rec709.html" title="struct maplibre::style::Rec709">Rec709</a><ComponentTy></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">fn <a href="https://doc.rust-lang.org/1.62.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">[</a>ComponentTy<a class="primitive" href="https://doc.rust-lang.org/1.62.0/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Converts this type into the (usually inferred) input type.</p>
|
||||
|
||||
78
docs/api/maplibre/style/struct.YCbCr.html
Normal file
78
docs/api/maplibre/style/struct.YCbCr.html
Normal file
File diff suppressed because one or more lines are too long
77
docs/api/maplibre/style/struct.YCxCz.html
Normal file
77
docs/api/maplibre/style/struct.YCxCz.html
Normal file
File diff suppressed because one or more lines are too long
78
docs/api/maplibre/style/struct.YPbPr.html
Normal file
78
docs/api/maplibre/style/struct.YPbPr.html
Normal file
File diff suppressed because one or more lines are too long
78
docs/api/maplibre/style/struct.YPrimeCbCr.html
Normal file
78
docs/api/maplibre/style/struct.YPrimeCbCr.html
Normal file
File diff suppressed because one or more lines are too long
78
docs/api/maplibre/style/struct.YPrimePbPr.html
Normal file
78
docs/api/maplibre/style/struct.YPrimePbPr.html
Normal file
File diff suppressed because one or more lines are too long
76
docs/api/maplibre/style/struct.Yuv.html
Normal file
76
docs/api/maplibre/style/struct.Yuv.html
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
15
docs/api/maplibre/style/trait.ColorType.html
Normal file
15
docs/api/maplibre/style/trait.ColorType.html
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user