libcosmic/cosmic/cosmic_theme/palette/trait.GetHue.html
2026-04-18 20:11:25 +00:00

52 lines
No EOL
38 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A trait for colors where a hue may be calculated."><title>GetHue in cosmic::cosmic_theme::palette - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">GetHue</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Hue" title="Hue">Hue</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.get_hue" title="get_hue">get_hue</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cosmic_<wbr>theme::<wbr>palette</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">cosmic</a>::<wbr><a href="../index.html">cosmic_theme</a>::<wbr><a href="index.html">palette</a></div><h1>Trait <span class="trait">GetHue</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="https://docs.rs/palette/0.7.6/src/palette/lib.rs.html#901">Source</a> </span></div><pre class="rust item-decl"><code>pub trait GetHue {
type <a href="#associatedtype.Hue" class="associatedtype">Hue</a>;
// Required method
fn <a href="#tymethod.get_hue" class="fn">get_hue</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="trait.GetHue.html#associatedtype.Hue" title="type cosmic::cosmic_theme::palette::GetHue::Hue">Hue</a>;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A trait for colors where a hue may be calculated.</p>
<p>See also <a href="trait.WithHue.html" title="trait cosmic::cosmic_theme::palette::WithHue"><code>WithHue</code></a>, <a href="trait.SetHue.html" title="trait cosmic::cosmic_theme::palette::SetHue"><code>SetHue</code></a>, <a href="trait.ShiftHue.html" title="trait cosmic::cosmic_theme::palette::ShiftHue"><code>ShiftHue</code></a> and <a href="trait.ShiftHueAssign.html" title="trait cosmic::cosmic_theme::palette::ShiftHueAssign"><code>ShiftHueAssign</code></a>.</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>approx::assert_relative_eq;
<span class="kw">use </span>palette::{GetHue, LinSrgb};
<span class="kw">let </span>red = LinSrgb::new(<span class="number">1.0f32</span>, <span class="number">0.0</span>, <span class="number">0.0</span>);
<span class="kw">let </span>green = LinSrgb::new(<span class="number">0.0f32</span>, <span class="number">1.0</span>, <span class="number">0.0</span>);
<span class="kw">let </span>blue = LinSrgb::new(<span class="number">0.0f32</span>, <span class="number">0.0</span>, <span class="number">1.0</span>);
<span class="kw">let </span>gray = LinSrgb::new(<span class="number">0.5f32</span>, <span class="number">0.5</span>, <span class="number">0.5</span>);
<span class="macro">assert_relative_eq!</span>(red.get_hue(), <span class="number">0.0</span>.into());
<span class="macro">assert_relative_eq!</span>(green.get_hue(), <span class="number">120.0</span>.into());
<span class="macro">assert_relative_eq!</span>(blue.get_hue(), <span class="number">240.0</span>.into());
<span class="macro">assert_relative_eq!</span>(gray.get_hue(), <span class="number">0.0</span>.into());</code></pre></div>
</div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.Hue" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/lib.rs.html#908">Source</a><h4 class="code-header">type <a href="#associatedtype.Hue" class="associatedtype">Hue</a></h4></section></summary><div class="docblock"><p>The kind of hue unit this color space uses.</p>
<p>The hue is most commonly calculated as an angle around a color circle
and may not always be uniform between color spaces. Its therefore not
recommended to take one type of hue and apply it to a color space that
expects an other.</p>
</div></details></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.get_hue" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/lib.rs.html#915">Source</a><h4 class="code-header">fn <a href="#tymethod.get_hue" class="fn">get_hue</a>(&amp;self) -&gt; Self::<a class="associatedtype" href="trait.GetHue.html#associatedtype.Hue" title="type cosmic::cosmic_theme::palette::GetHue::Hue">Hue</a></h4></section></summary><div class="docblock"><p>Calculate a hue if possible.</p>
<p>Colors in the gray scale has no well defined hue and should preferably
return <code>0</code>.</p>
</div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-GetHue-for-Alpha%3CC,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/alpha/alpha.rs.html#308">Source</a><a href="#impl-GetHue-for-Alpha%3CC,+T%3E" class="anchor">§</a><h3 class="code-header">impl&lt;C, T&gt; <a class="trait" href="trait.GetHue.html" title="trait cosmic::cosmic_theme::palette::GetHue">GetHue</a> for <a class="struct" href="struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;C, T&gt;<div class="where">where
C: <a class="trait" href="trait.GetHue.html" title="trait cosmic::cosmic_theme::palette::GetHue">GetHue</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Hue-1" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/alpha/alpha.rs.html#309">Source</a><a href="#associatedtype.Hue-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Hue" class="associatedtype">Hue</a> = &lt;C as <a class="trait" href="trait.GetHue.html" title="trait cosmic::cosmic_theme::palette::GetHue">GetHue</a>&gt;::<a class="associatedtype" href="trait.GetHue.html#associatedtype.Hue" title="type cosmic::cosmic_theme::palette::GetHue::Hue">Hue</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-GetHue-for-Rgb%3CS,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/rgb/rgb.rs.html#957-959">Source</a><a href="#impl-GetHue-for-Rgb%3CS,+T%3E" class="anchor">§</a><h3 class="code-header">impl&lt;S, T&gt; <a class="trait" href="trait.GetHue.html" title="trait cosmic::cosmic_theme::palette::GetHue">GetHue</a> for <a class="struct" href="rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>&lt;S, T&gt;<div class="where">where
T: <a class="trait" href="num/trait.Real.html" title="trait cosmic::cosmic_theme::palette::num::Real">Real</a> + <a class="trait" href="angle/trait.RealAngle.html" title="trait cosmic::cosmic_theme::palette::angle::RealAngle">RealAngle</a> + <a class="trait" href="num/trait.Trigonometry.html" title="trait cosmic::cosmic_theme::palette::num::Trigonometry">Trigonometry</a> + <a class="trait" href="num/trait.Arithmetics.html" title="trait cosmic::cosmic_theme::palette::num::Arithmetics">Arithmetics</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Hue-2" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/rgb/rgb.rs.html#961">Source</a><a href="#associatedtype.Hue-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Hue" class="associatedtype">Hue</a> = <a class="struct" href="struct.RgbHue.html" title="struct cosmic::cosmic_theme::palette::RgbHue">RgbHue</a>&lt;T&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-GetHue-for-Hsl%3CS,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/hsl.rs.html#464">Source</a><a href="#impl-GetHue-for-Hsl%3CS,+T%3E" class="anchor">§</a><h3 class="code-header">impl&lt;S, T&gt; <a class="trait" href="trait.GetHue.html" title="trait cosmic::cosmic_theme::palette::GetHue">GetHue</a> for <a class="struct" href="struct.Hsl.html" title="struct cosmic::cosmic_theme::palette::Hsl">Hsl</a>&lt;S, T&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Hue-3" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/hsl.rs.html#464">Source</a><a href="#associatedtype.Hue-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Hue" class="associatedtype">Hue</a> = <a class="struct" href="struct.RgbHue.html" title="struct cosmic::cosmic_theme::palette::RgbHue">RgbHue</a>&lt;T&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-GetHue-for-Hsv%3CS,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/hsv.rs.html#475">Source</a><a href="#impl-GetHue-for-Hsv%3CS,+T%3E" class="anchor">§</a><h3 class="code-header">impl&lt;S, T&gt; <a class="trait" href="trait.GetHue.html" title="trait cosmic::cosmic_theme::palette::GetHue">GetHue</a> for <a class="struct" href="struct.Hsv.html" title="struct cosmic::cosmic_theme::palette::Hsv">Hsv</a>&lt;S, T&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Hue-4" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/hsv.rs.html#475">Source</a><a href="#associatedtype.Hue-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Hue" class="associatedtype">Hue</a> = <a class="struct" href="struct.RgbHue.html" title="struct cosmic::cosmic_theme::palette::RgbHue">RgbHue</a>&lt;T&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-GetHue-for-Hwb%3CS,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/hwb.rs.html#296">Source</a><a href="#impl-GetHue-for-Hwb%3CS,+T%3E" class="anchor">§</a><h3 class="code-header">impl&lt;S, T&gt; <a class="trait" href="trait.GetHue.html" title="trait cosmic::cosmic_theme::palette::GetHue">GetHue</a> for <a class="struct" href="struct.Hwb.html" title="struct cosmic::cosmic_theme::palette::Hwb">Hwb</a>&lt;S, T&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Hue-5" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/hwb.rs.html#296">Source</a><a href="#associatedtype.Hue-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Hue" class="associatedtype">Hue</a> = <a class="struct" href="struct.RgbHue.html" title="struct cosmic::cosmic_theme::palette::RgbHue">RgbHue</a>&lt;T&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-GetHue-for-Cam16%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/full.rs.html#437-439">Source</a><a href="#impl-GetHue-for-Cam16%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.GetHue.html" title="trait cosmic::cosmic_theme::palette::GetHue">GetHue</a> for <a class="struct" href="cam16/struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a>&lt;T&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Hue-6" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/full.rs.html#441">Source</a><a href="#associatedtype.Hue-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Hue" class="associatedtype">Hue</a> = <a class="struct" href="hues/struct.Cam16Hue.html" title="struct cosmic::cosmic_theme::palette::hues::Cam16Hue">Cam16Hue</a>&lt;T&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-GetHue-for-Cam16Jch%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#554-567">Source</a><a href="#impl-GetHue-for-Cam16Jch%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.GetHue.html" title="trait cosmic::cosmic_theme::palette::GetHue">GetHue</a> for <a class="struct" href="cam16/struct.Cam16Jch.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jch">Cam16Jch</a>&lt;T&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Hue-7" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#554-567">Source</a><a href="#associatedtype.Hue-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Hue" class="associatedtype">Hue</a> = <a class="struct" href="hues/struct.Cam16Hue.html" title="struct cosmic::cosmic_theme::palette::hues::Cam16Hue">Cam16Hue</a>&lt;T&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-GetHue-for-Cam16Jmh%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#573-598">Source</a><a href="#impl-GetHue-for-Cam16Jmh%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.GetHue.html" title="trait cosmic::cosmic_theme::palette::GetHue">GetHue</a> for <a class="struct" href="cam16/struct.Cam16Jmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jmh">Cam16Jmh</a>&lt;T&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Hue-8" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#573-598">Source</a><a href="#associatedtype.Hue-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Hue" class="associatedtype">Hue</a> = <a class="struct" href="hues/struct.Cam16Hue.html" title="struct cosmic::cosmic_theme::palette::hues::Cam16Hue">Cam16Hue</a>&lt;T&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-GetHue-for-Cam16Jsh%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#604-618">Source</a><a href="#impl-GetHue-for-Cam16Jsh%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.GetHue.html" title="trait cosmic::cosmic_theme::palette::GetHue">GetHue</a> for <a class="struct" href="cam16/struct.Cam16Jsh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jsh">Cam16Jsh</a>&lt;T&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Hue-9" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#604-618">Source</a><a href="#associatedtype.Hue-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Hue" class="associatedtype">Hue</a> = <a class="struct" href="hues/struct.Cam16Hue.html" title="struct cosmic::cosmic_theme::palette::hues::Cam16Hue">Cam16Hue</a>&lt;T&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-GetHue-for-Cam16Qch%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#624-637">Source</a><a href="#impl-GetHue-for-Cam16Qch%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.GetHue.html" title="trait cosmic::cosmic_theme::palette::GetHue">GetHue</a> for <a class="struct" href="cam16/struct.Cam16Qch.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qch">Cam16Qch</a>&lt;T&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Hue-10" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#624-637">Source</a><a href="#associatedtype.Hue-10" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Hue" class="associatedtype">Hue</a> = <a class="struct" href="hues/struct.Cam16Hue.html" title="struct cosmic::cosmic_theme::palette::hues::Cam16Hue">Cam16Hue</a>&lt;T&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-GetHue-for-Cam16Qmh%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#643-657">Source</a><a href="#impl-GetHue-for-Cam16Qmh%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.GetHue.html" title="trait cosmic::cosmic_theme::palette::GetHue">GetHue</a> for <a class="struct" href="cam16/struct.Cam16Qmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qmh">Cam16Qmh</a>&lt;T&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Hue-11" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#643-657">Source</a><a href="#associatedtype.Hue-11" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Hue" class="associatedtype">Hue</a> = <a class="struct" href="hues/struct.Cam16Hue.html" title="struct cosmic::cosmic_theme::palette::hues::Cam16Hue">Cam16Hue</a>&lt;T&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-GetHue-for-Cam16Qsh%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#663-677">Source</a><a href="#impl-GetHue-for-Cam16Qsh%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.GetHue.html" title="trait cosmic::cosmic_theme::palette::GetHue">GetHue</a> for <a class="struct" href="cam16/struct.Cam16Qsh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qsh">Cam16Qsh</a>&lt;T&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Hue-12" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#663-677">Source</a><a href="#associatedtype.Hue-12" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Hue" class="associatedtype">Hue</a> = <a class="struct" href="hues/struct.Cam16Hue.html" title="struct cosmic::cosmic_theme::palette::hues::Cam16Hue">Cam16Hue</a>&lt;T&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-GetHue-for-Cam16UcsJmh%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/ucs_jmh.rs.html#276">Source</a><a href="#impl-GetHue-for-Cam16UcsJmh%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.GetHue.html" title="trait cosmic::cosmic_theme::palette::GetHue">GetHue</a> for <a class="struct" href="cam16/struct.Cam16UcsJmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16UcsJmh">Cam16UcsJmh</a>&lt;T&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Hue-13" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/ucs_jmh.rs.html#276">Source</a><a href="#associatedtype.Hue-13" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Hue" class="associatedtype">Hue</a> = <a class="struct" href="hues/struct.Cam16Hue.html" title="struct cosmic::cosmic_theme::palette::hues::Cam16Hue">Cam16Hue</a>&lt;T&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-GetHue-for-Okhsl%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/okhsl/properties.rs.html#34">Source</a><a href="#impl-GetHue-for-Okhsl%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.GetHue.html" title="trait cosmic::cosmic_theme::palette::GetHue">GetHue</a> for <a class="struct" href="struct.Okhsl.html" title="struct cosmic::cosmic_theme::palette::Okhsl">Okhsl</a>&lt;T&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Hue-14" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/okhsl/properties.rs.html#34">Source</a><a href="#associatedtype.Hue-14" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Hue" class="associatedtype">Hue</a> = <a class="struct" href="struct.OklabHue.html" title="struct cosmic::cosmic_theme::palette::OklabHue">OklabHue</a>&lt;T&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-GetHue-for-Okhsv%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/okhsv/properties.rs.html#29">Source</a><a href="#impl-GetHue-for-Okhsv%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.GetHue.html" title="trait cosmic::cosmic_theme::palette::GetHue">GetHue</a> for <a class="struct" href="struct.Okhsv.html" title="struct cosmic::cosmic_theme::palette::Okhsv">Okhsv</a>&lt;T&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Hue-15" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/okhsv/properties.rs.html#29">Source</a><a href="#associatedtype.Hue-15" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Hue" class="associatedtype">Hue</a> = <a class="struct" href="struct.OklabHue.html" title="struct cosmic::cosmic_theme::palette::OklabHue">OklabHue</a>&lt;T&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-GetHue-for-Okhwb%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/okhwb/properties.rs.html#20">Source</a><a href="#impl-GetHue-for-Okhwb%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.GetHue.html" title="trait cosmic::cosmic_theme::palette::GetHue">GetHue</a> for <a class="struct" href="struct.Okhwb.html" title="struct cosmic::cosmic_theme::palette::Okhwb">Okhwb</a>&lt;T&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Hue-16" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/okhwb/properties.rs.html#20">Source</a><a href="#associatedtype.Hue-16" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Hue" class="associatedtype">Hue</a> = <a class="struct" href="struct.OklabHue.html" title="struct cosmic::cosmic_theme::palette::OklabHue">OklabHue</a>&lt;T&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-GetHue-for-Oklab%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/oklab/properties.rs.html#38-40">Source</a><a href="#impl-GetHue-for-Oklab%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.GetHue.html" title="trait cosmic::cosmic_theme::palette::GetHue">GetHue</a> for <a class="struct" href="struct.Oklab.html" title="struct cosmic::cosmic_theme::palette::Oklab">Oklab</a>&lt;T&gt;<div class="where">where
T: <a class="trait" href="num/trait.Trigonometry.html" title="trait cosmic::cosmic_theme::palette::num::Trigonometry">Trigonometry</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a>&lt;Output = T&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Neg.html" title="trait core::ops::arith::Neg">Neg</a>&lt;Output = T&gt; + <a class="trait" href="angle/trait.RealAngle.html" title="trait cosmic::cosmic_theme::palette::angle::RealAngle">RealAngle</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Hue-17" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/oklab/properties.rs.html#42">Source</a><a href="#associatedtype.Hue-17" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Hue" class="associatedtype">Hue</a> = <a class="struct" href="struct.OklabHue.html" title="struct cosmic::cosmic_theme::palette::OklabHue">OklabHue</a>&lt;T&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-GetHue-for-Oklch%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/oklch/properties.rs.html#29">Source</a><a href="#impl-GetHue-for-Oklch%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.GetHue.html" title="trait cosmic::cosmic_theme::palette::GetHue">GetHue</a> for <a class="struct" href="struct.Oklch.html" title="struct cosmic::cosmic_theme::palette::Oklch">Oklch</a>&lt;T&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Hue-18" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/oklch/properties.rs.html#29">Source</a><a href="#associatedtype.Hue-18" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Hue" class="associatedtype">Hue</a> = <a class="struct" href="struct.OklabHue.html" title="struct cosmic::cosmic_theme::palette::OklabHue">OklabHue</a>&lt;T&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-GetHue-for-Hsluv%3CWp,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/hsluv.rs.html#194">Source</a><a href="#impl-GetHue-for-Hsluv%3CWp,+T%3E" class="anchor">§</a><h3 class="code-header">impl&lt;Wp, T&gt; <a class="trait" href="trait.GetHue.html" title="trait cosmic::cosmic_theme::palette::GetHue">GetHue</a> for <a class="struct" href="struct.Hsluv.html" title="struct cosmic::cosmic_theme::palette::Hsluv">Hsluv</a>&lt;Wp, T&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Hue-19" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/hsluv.rs.html#194">Source</a><a href="#associatedtype.Hue-19" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Hue" class="associatedtype">Hue</a> = <a class="struct" href="struct.LuvHue.html" title="struct cosmic::cosmic_theme::palette::LuvHue">LuvHue</a>&lt;T&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-GetHue-for-Lab%3CWp,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/lab.rs.html#236-238">Source</a><a href="#impl-GetHue-for-Lab%3CWp,+T%3E" class="anchor">§</a><h3 class="code-header">impl&lt;Wp, T&gt; <a class="trait" href="trait.GetHue.html" title="trait cosmic::cosmic_theme::palette::GetHue">GetHue</a> for <a class="struct" href="struct.Lab.html" title="struct cosmic::cosmic_theme::palette::Lab">Lab</a>&lt;Wp, T&gt;<div class="where">where
T: <a class="trait" href="angle/trait.RealAngle.html" title="trait cosmic::cosmic_theme::palette::angle::RealAngle">RealAngle</a> + <a class="trait" href="num/trait.Trigonometry.html" title="trait cosmic::cosmic_theme::palette::num::Trigonometry">Trigonometry</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a>&lt;Output = T&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Neg.html" title="trait core::ops::arith::Neg">Neg</a>&lt;Output = T&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Hue-20" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/lab.rs.html#240">Source</a><a href="#associatedtype.Hue-20" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Hue" class="associatedtype">Hue</a> = <a class="struct" href="struct.LabHue.html" title="struct cosmic::cosmic_theme::palette::LabHue">LabHue</a>&lt;T&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-GetHue-for-Lch%3CWp,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/lch.rs.html#196">Source</a><a href="#impl-GetHue-for-Lch%3CWp,+T%3E" class="anchor">§</a><h3 class="code-header">impl&lt;Wp, T&gt; <a class="trait" href="trait.GetHue.html" title="trait cosmic::cosmic_theme::palette::GetHue">GetHue</a> for <a class="struct" href="struct.Lch.html" title="struct cosmic::cosmic_theme::palette::Lch">Lch</a>&lt;Wp, T&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Hue-21" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/lch.rs.html#196">Source</a><a href="#associatedtype.Hue-21" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Hue" class="associatedtype">Hue</a> = <a class="struct" href="struct.LabHue.html" title="struct cosmic::cosmic_theme::palette::LabHue">LabHue</a>&lt;T&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-GetHue-for-Lchuv%3CWp,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/lchuv.rs.html#204">Source</a><a href="#impl-GetHue-for-Lchuv%3CWp,+T%3E" class="anchor">§</a><h3 class="code-header">impl&lt;Wp, T&gt; <a class="trait" href="trait.GetHue.html" title="trait cosmic::cosmic_theme::palette::GetHue">GetHue</a> for <a class="struct" href="struct.Lchuv.html" title="struct cosmic::cosmic_theme::palette::Lchuv">Lchuv</a>&lt;Wp, T&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Hue-22" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/lchuv.rs.html#204">Source</a><a href="#associatedtype.Hue-22" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Hue" class="associatedtype">Hue</a> = <a class="struct" href="struct.LuvHue.html" title="struct cosmic::cosmic_theme::palette::LuvHue">LuvHue</a>&lt;T&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-GetHue-for-Luv%3CWp,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/luv.rs.html#238-240">Source</a><a href="#impl-GetHue-for-Luv%3CWp,+T%3E" class="anchor">§</a><h3 class="code-header">impl&lt;Wp, T&gt; <a class="trait" href="trait.GetHue.html" title="trait cosmic::cosmic_theme::palette::GetHue">GetHue</a> for <a class="struct" href="struct.Luv.html" title="struct cosmic::cosmic_theme::palette::Luv">Luv</a>&lt;Wp, T&gt;<div class="where">where
T: <a class="trait" href="angle/trait.RealAngle.html" title="trait cosmic::cosmic_theme::palette::angle::RealAngle">RealAngle</a> + <a class="trait" href="num/trait.Trigonometry.html" title="trait cosmic::cosmic_theme::palette::num::Trigonometry">Trigonometry</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a>&lt;Output = T&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Neg.html" title="trait core::ops::arith::Neg">Neg</a>&lt;Output = T&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Hue-23" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/luv.rs.html#242">Source</a><a href="#associatedtype.Hue-23" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Hue" class="associatedtype">Hue</a> = <a class="struct" href="struct.LuvHue.html" title="struct cosmic::cosmic_theme::palette::LuvHue">LuvHue</a>&lt;T&gt;</h4></section></div></details></div><script src="../../../trait.impl/palette/trait.GetHue.js" data-ignore-extern-crates="palette" async></script></section></div></main></body></html>