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

142 lines
No EOL
58 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 calculating relative contrast between two colors."><title>RelativeContrast 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="#">Relative<wbr>Contrast</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Scalar" title="Scalar">Scalar</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.get_contrast_ratio" title="get_contrast_ratio">get_contrast_ratio</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.has_enhanced_contrast_large_text" title="has_enhanced_contrast_large_text">has_enhanced_contrast_large_text</a></li><li><a href="#method.has_enhanced_contrast_text" title="has_enhanced_contrast_text">has_enhanced_contrast_text</a></li><li><a href="#method.has_min_contrast_graphics" title="has_min_contrast_graphics">has_min_contrast_graphics</a></li><li><a href="#method.has_min_contrast_large_text" title="has_min_contrast_large_text">has_min_contrast_large_text</a></li><li><a href="#method.has_min_contrast_text" title="has_min_contrast_text">has_min_contrast_text</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><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">RelativeContrast</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/relative_contrast.rs.html#58">Source</a> </span></div><pre class="rust item-decl"><code>pub trait RelativeContrast: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> {
type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a>: <a class="trait" href="num/trait.Real.html" title="trait cosmic::cosmic_theme::palette::num::Real">Real</a> + <a class="trait" href="num/trait.PartialCmp.html" title="trait cosmic::cosmic_theme::palette::num::PartialCmp">PartialCmp</a>;
// Required method
fn <a href="#tymethod.get_contrast_ratio" class="fn">get_contrast_ratio</a>(self, other: Self) -&gt; Self::<a class="associatedtype" href="trait.RelativeContrast.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::RelativeContrast::Scalar">Scalar</a>;
// Provided methods
fn <a href="#method.has_min_contrast_text" class="fn">has_min_contrast_text</a>(
self,
other: Self,
) -&gt; &lt;Self::<a class="associatedtype" href="trait.RelativeContrast.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::RelativeContrast::Scalar">Scalar</a> as <a class="trait" href="bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>&gt;::<a class="associatedtype" href="bool_mask/trait.HasBoolMask.html#associatedtype.Mask" title="type cosmic::cosmic_theme::palette::bool_mask::HasBoolMask::Mask">Mask</a> { ... }
<span class="item-spacer"></span> fn <a href="#method.has_min_contrast_large_text" class="fn">has_min_contrast_large_text</a>(
self,
other: Self,
) -&gt; &lt;Self::<a class="associatedtype" href="trait.RelativeContrast.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::RelativeContrast::Scalar">Scalar</a> as <a class="trait" href="bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>&gt;::<a class="associatedtype" href="bool_mask/trait.HasBoolMask.html#associatedtype.Mask" title="type cosmic::cosmic_theme::palette::bool_mask::HasBoolMask::Mask">Mask</a> { ... }
<span class="item-spacer"></span> fn <a href="#method.has_enhanced_contrast_text" class="fn">has_enhanced_contrast_text</a>(
self,
other: Self,
) -&gt; &lt;Self::<a class="associatedtype" href="trait.RelativeContrast.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::RelativeContrast::Scalar">Scalar</a> as <a class="trait" href="bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>&gt;::<a class="associatedtype" href="bool_mask/trait.HasBoolMask.html#associatedtype.Mask" title="type cosmic::cosmic_theme::palette::bool_mask::HasBoolMask::Mask">Mask</a> { ... }
<span class="item-spacer"></span> fn <a href="#method.has_enhanced_contrast_large_text" class="fn">has_enhanced_contrast_large_text</a>(
self,
other: Self,
) -&gt; &lt;Self::<a class="associatedtype" href="trait.RelativeContrast.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::RelativeContrast::Scalar">Scalar</a> as <a class="trait" href="bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>&gt;::<a class="associatedtype" href="bool_mask/trait.HasBoolMask.html#associatedtype.Mask" title="type cosmic::cosmic_theme::palette::bool_mask::HasBoolMask::Mask">Mask</a> { ... }
<span class="item-spacer"></span> fn <a href="#method.has_min_contrast_graphics" class="fn">has_min_contrast_graphics</a>(
self,
other: Self,
) -&gt; &lt;Self::<a class="associatedtype" href="trait.RelativeContrast.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::RelativeContrast::Scalar">Scalar</a> as <a class="trait" href="bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>&gt;::<a class="associatedtype" href="bool_mask/trait.HasBoolMask.html#associatedtype.Mask" title="type cosmic::cosmic_theme::palette::bool_mask::HasBoolMask::Mask">Mask</a> { ... }
}</code></pre><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 0.7.2: replaced by <code>palette::color_difference::Wcag21RelativeContrast</code></span></div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A trait for calculating relative contrast between two colors.</p>
<p>W3Cs Web Content Accessibility Guidelines (WCAG) 2.1 suggest a method
to calculate accessible contrast ratios of text and background colors for
those with low vision or color deficiencies, and for contrast of colors used
in user interface graphics objects.</p>
<p>These criteria are recommendations, not hard and fast rules. Most
importantly, look at the colors in action and make sure theyre clear and
comfortable to read. A pair of colors may pass contrast guidelines but still
be uncomfortable to look at. Favor readability over only satisfying the
contrast ratio metric. It is recommended to verify the contrast ratio
in the output format of the colors and not to assume the contrast ratio
remains exactly the same across color formats. The following example checks
the contrast ratio of two colors in RGB format.</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>std::str::FromStr;
<span class="kw">use </span>palette::{Srgb, RelativeContrast};
<span class="comment">// the rustdoc "DARK" theme background and text colors
</span><span class="kw">let </span>background: Srgb&lt;f32&gt; = Srgb::from(<span class="number">0x353535</span>).into_format();
<span class="kw">let </span>foreground = Srgb::from_str(<span class="string">"#ddd"</span>)<span class="question-mark">?</span>.into_format();
<span class="macro">assert!</span>(background.has_enhanced_contrast_text(foreground));</code></pre></div>
<p>The possible range of contrast ratios is from 1:1 to 21:1. There is a
Success Criterion for Contrast (Minimum) and a Success Criterion for
Contrast (Enhanced), SC 1.4.3 and SC 1.4.6 respectively, which are concerned
with text and images of text. SC 1.4.11 is a Success Criterion for “non-text
contrast” such as user interface components and other graphics. The relative
contrast is calculated by <code>(L1 + 0.05) / (L2 + 0.05)</code>, where <code>L1</code> is the
luminance of the brighter color and <code>L2</code> is the luminance of the darker
color both in sRGB linear space. A higher contrast ratio is generally
desirable.</p>
<p>For more details, visit the following links:</p>
<p><a href="https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum">Success Criterion 1.4.3 Contrast (Minimum) (Level AA)</a></p>
<p><a href="https://www.w3.org/WAI/WCAG21/Understanding/contrast-enhanced">Success Criterion 1.4.6 Contrast (Enhanced) (Level AAA)</a></p>
<p><a href="https://www.w3.org/WAI/WCAG21/Understanding/non-text-contrast.html">Success Criterion 1.4.11 Non-text Contrast (Level AA)</a></p>
</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.Scalar" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/relative_contrast.rs.html#60">Source</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a>: <a class="trait" href="num/trait.Real.html" title="trait cosmic::cosmic_theme::palette::num::Real">Real</a> + <a class="trait" href="num/trait.PartialCmp.html" title="trait cosmic::cosmic_theme::palette::num::PartialCmp">PartialCmp</a></h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 0.7.2: replaced by <code>palette::color_difference::Wcag21RelativeContrast</code></span></div></span></summary><div class="docblock"><p>The type of the contrast ratio.</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_contrast_ratio" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/relative_contrast.rs.html#64">Source</a><h4 class="code-header">fn <a href="#tymethod.get_contrast_ratio" class="fn">get_contrast_ratio</a>(self, other: Self) -&gt; Self::<a class="associatedtype" href="trait.RelativeContrast.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::RelativeContrast::Scalar">Scalar</a></h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 0.7.2: replaced by <code>palette::color_difference::Wcag21RelativeContrast</code></span></div></span></summary><div class="docblock"><p>Calculate the contrast ratio between two colors.</p>
</div></details></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="method.has_min_contrast_text" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/relative_contrast.rs.html#70">Source</a><h4 class="code-header">fn <a href="#method.has_min_contrast_text" class="fn">has_min_contrast_text</a>(
self,
other: Self,
) -&gt; &lt;Self::<a class="associatedtype" href="trait.RelativeContrast.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::RelativeContrast::Scalar">Scalar</a> as <a class="trait" href="bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>&gt;::<a class="associatedtype" href="bool_mask/trait.HasBoolMask.html#associatedtype.Mask" title="type cosmic::cosmic_theme::palette::bool_mask::HasBoolMask::Mask">Mask</a></h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 0.7.2: replaced by <code>palette::color_difference::Wcag21RelativeContrast</code></span></div></span></summary><div class="docblock"><p>Verify the contrast between two colors satisfies SC 1.4.3. Contrast
is at least 4.5:1 (Level AA).</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.has_min_contrast_large_text" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/relative_contrast.rs.html#79">Source</a><h4 class="code-header">fn <a href="#method.has_min_contrast_large_text" class="fn">has_min_contrast_large_text</a>(
self,
other: Self,
) -&gt; &lt;Self::<a class="associatedtype" href="trait.RelativeContrast.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::RelativeContrast::Scalar">Scalar</a> as <a class="trait" href="bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>&gt;::<a class="associatedtype" href="bool_mask/trait.HasBoolMask.html#associatedtype.Mask" title="type cosmic::cosmic_theme::palette::bool_mask::HasBoolMask::Mask">Mask</a></h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 0.7.2: replaced by <code>palette::color_difference::Wcag21RelativeContrast</code></span></div></span></summary><div class="docblock"><p>Verify the contrast between two colors satisfies SC 1.4.3 for large
text. Contrast is at least 3:1 (Level AA).</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.has_enhanced_contrast_text" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/relative_contrast.rs.html#88">Source</a><h4 class="code-header">fn <a href="#method.has_enhanced_contrast_text" class="fn">has_enhanced_contrast_text</a>(
self,
other: Self,
) -&gt; &lt;Self::<a class="associatedtype" href="trait.RelativeContrast.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::RelativeContrast::Scalar">Scalar</a> as <a class="trait" href="bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>&gt;::<a class="associatedtype" href="bool_mask/trait.HasBoolMask.html#associatedtype.Mask" title="type cosmic::cosmic_theme::palette::bool_mask::HasBoolMask::Mask">Mask</a></h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 0.7.2: replaced by <code>palette::color_difference::Wcag21RelativeContrast</code></span></div></span></summary><div class="docblock"><p>Verify the contrast between two colors satisfies SC 1.4.6. Contrast
is at least 7:1 (Level AAA).</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.has_enhanced_contrast_large_text" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/relative_contrast.rs.html#97">Source</a><h4 class="code-header">fn <a href="#method.has_enhanced_contrast_large_text" class="fn">has_enhanced_contrast_large_text</a>(
self,
other: Self,
) -&gt; &lt;Self::<a class="associatedtype" href="trait.RelativeContrast.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::RelativeContrast::Scalar">Scalar</a> as <a class="trait" href="bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>&gt;::<a class="associatedtype" href="bool_mask/trait.HasBoolMask.html#associatedtype.Mask" title="type cosmic::cosmic_theme::palette::bool_mask::HasBoolMask::Mask">Mask</a></h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 0.7.2: replaced by <code>palette::color_difference::Wcag21RelativeContrast</code></span></div></span></summary><div class="docblock"><p>Verify the contrast between two colors satisfies SC 1.4.6 for large
text. Contrast is at least 4.5:1 (Level AAA).</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.has_min_contrast_graphics" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/relative_contrast.rs.html#105">Source</a><h4 class="code-header">fn <a href="#method.has_min_contrast_graphics" class="fn">has_min_contrast_graphics</a>(
self,
other: Self,
) -&gt; &lt;Self::<a class="associatedtype" href="trait.RelativeContrast.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::RelativeContrast::Scalar">Scalar</a> as <a class="trait" href="bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>&gt;::<a class="associatedtype" href="bool_mask/trait.HasBoolMask.html#associatedtype.Mask" title="type cosmic::cosmic_theme::palette::bool_mask::HasBoolMask::Mask">Mask</a></h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 0.7.2: replaced by <code>palette::color_difference::Wcag21RelativeContrast</code></span></div></span></summary><div class="docblock"><p>Verify the contrast between two colors satisfies SC 1.4.11 for graphical
objects. Contrast is at least 3:1 (Level AA).</p>
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></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-RelativeContrast-for-Luma%3CS,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/luma/luma.rs.html#783-788">Source</a><a href="#impl-RelativeContrast-for-Luma%3CS,+T%3E" class="anchor">§</a><h3 class="code-header">impl&lt;S, T&gt; <a class="trait" href="trait.RelativeContrast.html" title="trait cosmic::cosmic_theme::palette::RelativeContrast">RelativeContrast</a> for <a class="struct" href="luma/struct.Luma.html" title="struct cosmic::cosmic_theme::palette::luma::Luma">Luma</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="num/trait.Arithmetics.html" title="trait cosmic::cosmic_theme::palette::num::Arithmetics">Arithmetics</a> + <a class="trait" href="num/trait.PartialCmp.html" title="trait cosmic::cosmic_theme::palette::num::PartialCmp">PartialCmp</a>,
&lt;T as <a class="trait" href="bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>&gt;::<a class="associatedtype" href="bool_mask/trait.HasBoolMask.html#associatedtype.Mask" title="type cosmic::cosmic_theme::palette::bool_mask::HasBoolMask::Mask">Mask</a>: <a class="trait" href="bool_mask/trait.LazySelect.html" title="trait cosmic::cosmic_theme::palette::bool_mask::LazySelect">LazySelect</a>&lt;T&gt;,
S: <a class="trait" href="luma/trait.LumaStandard.html" title="trait cosmic::cosmic_theme::palette::luma::LumaStandard">LumaStandard</a>,
&lt;S as <a class="trait" href="luma/trait.LumaStandard.html" title="trait cosmic::cosmic_theme::palette::luma::LumaStandard">LumaStandard</a>&gt;::<a class="associatedtype" href="luma/trait.LumaStandard.html#associatedtype.TransferFn" title="type cosmic::cosmic_theme::palette::luma::LumaStandard::TransferFn">TransferFn</a>: <a class="trait" href="encoding/trait.IntoLinear.html" title="trait cosmic::cosmic_theme::palette::encoding::IntoLinear">IntoLinear</a>&lt;T, T&gt;,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-1" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/luma/luma.rs.html#790">Source</a><a href="#associatedtype.Scalar-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = T</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-RelativeContrast-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#1303-1308">Source</a><a href="#impl-RelativeContrast-for-Rgb%3CS,+T%3E" class="anchor">§</a><h3 class="code-header">impl&lt;S, T&gt; <a class="trait" href="trait.RelativeContrast.html" title="trait cosmic::cosmic_theme::palette::RelativeContrast">RelativeContrast</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="num/trait.Arithmetics.html" title="trait cosmic::cosmic_theme::palette::num::Arithmetics">Arithmetics</a> + <a class="trait" href="num/trait.PartialCmp.html" title="trait cosmic::cosmic_theme::palette::num::PartialCmp">PartialCmp</a>,
&lt;T as <a class="trait" href="bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>&gt;::<a class="associatedtype" href="bool_mask/trait.HasBoolMask.html#associatedtype.Mask" title="type cosmic::cosmic_theme::palette::bool_mask::HasBoolMask::Mask">Mask</a>: <a class="trait" href="bool_mask/trait.LazySelect.html" title="trait cosmic::cosmic_theme::palette::bool_mask::LazySelect">LazySelect</a>&lt;T&gt;,
S: <a class="trait" href="rgb/trait.RgbStandard.html" title="trait cosmic::cosmic_theme::palette::rgb::RgbStandard">RgbStandard</a>,
<a class="struct" href="struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a>&lt;&lt;&lt;S as <a class="trait" href="rgb/trait.RgbStandard.html" title="trait cosmic::cosmic_theme::palette::rgb::RgbStandard">RgbStandard</a>&gt;::<a class="associatedtype" href="rgb/trait.RgbStandard.html#associatedtype.Space" title="type cosmic::cosmic_theme::palette::rgb::RgbStandard::Space">Space</a> as <a class="trait" href="rgb/trait.RgbSpace.html" title="trait cosmic::cosmic_theme::palette::rgb::RgbSpace">RgbSpace</a>&gt;::<a class="associatedtype" href="rgb/trait.RgbSpace.html#associatedtype.WhitePoint" title="type cosmic::cosmic_theme::palette::rgb::RgbSpace::WhitePoint">WhitePoint</a>, T&gt;: <a class="trait" href="trait.FromColor.html" title="trait cosmic::cosmic_theme::palette::FromColor">FromColor</a>&lt;<a class="struct" href="rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>&lt;S, T&gt;&gt;,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-2" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/rgb/rgb.rs.html#1310">Source</a><a href="#associatedtype.Scalar-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = T</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-RelativeContrast-for-Hsl%3CS,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/hsl.rs.html#498-503">Source</a><a href="#impl-RelativeContrast-for-Hsl%3CS,+T%3E" class="anchor">§</a><h3 class="code-header">impl&lt;S, T&gt; <a class="trait" href="trait.RelativeContrast.html" title="trait cosmic::cosmic_theme::palette::RelativeContrast">RelativeContrast</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="num/trait.Real.html" title="trait cosmic::cosmic_theme::palette::num::Real">Real</a> + <a class="trait" href="num/trait.Arithmetics.html" title="trait cosmic::cosmic_theme::palette::num::Arithmetics">Arithmetics</a> + <a class="trait" href="num/trait.PartialCmp.html" title="trait cosmic::cosmic_theme::palette::num::PartialCmp">PartialCmp</a>,
&lt;T as <a class="trait" href="bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>&gt;::<a class="associatedtype" href="bool_mask/trait.HasBoolMask.html#associatedtype.Mask" title="type cosmic::cosmic_theme::palette::bool_mask::HasBoolMask::Mask">Mask</a>: <a class="trait" href="bool_mask/trait.LazySelect.html" title="trait cosmic::cosmic_theme::palette::bool_mask::LazySelect">LazySelect</a>&lt;T&gt;,
S: <a class="trait" href="rgb/trait.RgbStandard.html" title="trait cosmic::cosmic_theme::palette::rgb::RgbStandard">RgbStandard</a>,
<a class="struct" href="struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a>&lt;&lt;&lt;S as <a class="trait" href="rgb/trait.RgbStandard.html" title="trait cosmic::cosmic_theme::palette::rgb::RgbStandard">RgbStandard</a>&gt;::<a class="associatedtype" href="rgb/trait.RgbStandard.html#associatedtype.Space" title="type cosmic::cosmic_theme::palette::rgb::RgbStandard::Space">Space</a> as <a class="trait" href="rgb/trait.RgbSpace.html" title="trait cosmic::cosmic_theme::palette::rgb::RgbSpace">RgbSpace</a>&gt;::<a class="associatedtype" href="rgb/trait.RgbSpace.html#associatedtype.WhitePoint" title="type cosmic::cosmic_theme::palette::rgb::RgbSpace::WhitePoint">WhitePoint</a>, T&gt;: <a class="trait" href="trait.FromColor.html" title="trait cosmic::cosmic_theme::palette::FromColor">FromColor</a>&lt;<a class="struct" href="struct.Hsl.html" title="struct cosmic::cosmic_theme::palette::Hsl">Hsl</a>&lt;S, T&gt;&gt;,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-3" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/hsl.rs.html#505">Source</a><a href="#associatedtype.Scalar-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = T</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-RelativeContrast-for-Hsv%3CS,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/hsv.rs.html#505-510">Source</a><a href="#impl-RelativeContrast-for-Hsv%3CS,+T%3E" class="anchor">§</a><h3 class="code-header">impl&lt;S, T&gt; <a class="trait" href="trait.RelativeContrast.html" title="trait cosmic::cosmic_theme::palette::RelativeContrast">RelativeContrast</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="num/trait.Real.html" title="trait cosmic::cosmic_theme::palette::num::Real">Real</a> + <a class="trait" href="num/trait.Arithmetics.html" title="trait cosmic::cosmic_theme::palette::num::Arithmetics">Arithmetics</a> + <a class="trait" href="num/trait.PartialCmp.html" title="trait cosmic::cosmic_theme::palette::num::PartialCmp">PartialCmp</a>,
&lt;T as <a class="trait" href="bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>&gt;::<a class="associatedtype" href="bool_mask/trait.HasBoolMask.html#associatedtype.Mask" title="type cosmic::cosmic_theme::palette::bool_mask::HasBoolMask::Mask">Mask</a>: <a class="trait" href="bool_mask/trait.LazySelect.html" title="trait cosmic::cosmic_theme::palette::bool_mask::LazySelect">LazySelect</a>&lt;T&gt;,
S: <a class="trait" href="rgb/trait.RgbStandard.html" title="trait cosmic::cosmic_theme::palette::rgb::RgbStandard">RgbStandard</a>,
<a class="struct" href="struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a>&lt;&lt;&lt;S as <a class="trait" href="rgb/trait.RgbStandard.html" title="trait cosmic::cosmic_theme::palette::rgb::RgbStandard">RgbStandard</a>&gt;::<a class="associatedtype" href="rgb/trait.RgbStandard.html#associatedtype.Space" title="type cosmic::cosmic_theme::palette::rgb::RgbStandard::Space">Space</a> as <a class="trait" href="rgb/trait.RgbSpace.html" title="trait cosmic::cosmic_theme::palette::rgb::RgbSpace">RgbSpace</a>&gt;::<a class="associatedtype" href="rgb/trait.RgbSpace.html#associatedtype.WhitePoint" title="type cosmic::cosmic_theme::palette::rgb::RgbSpace::WhitePoint">WhitePoint</a>, T&gt;: <a class="trait" href="trait.FromColor.html" title="trait cosmic::cosmic_theme::palette::FromColor">FromColor</a>&lt;<a class="struct" href="struct.Hsv.html" title="struct cosmic::cosmic_theme::palette::Hsv">Hsv</a>&lt;S, T&gt;&gt;,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-4" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/hsv.rs.html#512">Source</a><a href="#associatedtype.Scalar-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = T</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-RelativeContrast-for-Hwb%3CS,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/hwb.rs.html#330-335">Source</a><a href="#impl-RelativeContrast-for-Hwb%3CS,+T%3E" class="anchor">§</a><h3 class="code-header">impl&lt;S, T&gt; <a class="trait" href="trait.RelativeContrast.html" title="trait cosmic::cosmic_theme::palette::RelativeContrast">RelativeContrast</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="num/trait.Real.html" title="trait cosmic::cosmic_theme::palette::num::Real">Real</a> + <a class="trait" href="num/trait.Arithmetics.html" title="trait cosmic::cosmic_theme::palette::num::Arithmetics">Arithmetics</a> + <a class="trait" href="num/trait.PartialCmp.html" title="trait cosmic::cosmic_theme::palette::num::PartialCmp">PartialCmp</a>,
&lt;T as <a class="trait" href="bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>&gt;::<a class="associatedtype" href="bool_mask/trait.HasBoolMask.html#associatedtype.Mask" title="type cosmic::cosmic_theme::palette::bool_mask::HasBoolMask::Mask">Mask</a>: <a class="trait" href="bool_mask/trait.LazySelect.html" title="trait cosmic::cosmic_theme::palette::bool_mask::LazySelect">LazySelect</a>&lt;T&gt;,
S: <a class="trait" href="rgb/trait.RgbStandard.html" title="trait cosmic::cosmic_theme::palette::rgb::RgbStandard">RgbStandard</a>,
<a class="struct" href="struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a>&lt;&lt;&lt;S as <a class="trait" href="rgb/trait.RgbStandard.html" title="trait cosmic::cosmic_theme::palette::rgb::RgbStandard">RgbStandard</a>&gt;::<a class="associatedtype" href="rgb/trait.RgbStandard.html#associatedtype.Space" title="type cosmic::cosmic_theme::palette::rgb::RgbStandard::Space">Space</a> as <a class="trait" href="rgb/trait.RgbSpace.html" title="trait cosmic::cosmic_theme::palette::rgb::RgbSpace">RgbSpace</a>&gt;::<a class="associatedtype" href="rgb/trait.RgbSpace.html#associatedtype.WhitePoint" title="type cosmic::cosmic_theme::palette::rgb::RgbSpace::WhitePoint">WhitePoint</a>, T&gt;: <a class="trait" href="trait.FromColor.html" title="trait cosmic::cosmic_theme::palette::FromColor">FromColor</a>&lt;<a class="struct" href="struct.Hwb.html" title="struct cosmic::cosmic_theme::palette::Hwb">Hwb</a>&lt;S, T&gt;&gt;,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-5" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/hwb.rs.html#337">Source</a><a href="#associatedtype.Scalar-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = T</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-RelativeContrast-for-Okhsl%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/okhsl/properties.rs.html#46-50">Source</a><a href="#impl-RelativeContrast-for-Okhsl%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.RelativeContrast.html" title="trait cosmic::cosmic_theme::palette::RelativeContrast">RelativeContrast</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="num/trait.Real.html" title="trait cosmic::cosmic_theme::palette::num::Real">Real</a> + <a class="trait" href="num/trait.Arithmetics.html" title="trait cosmic::cosmic_theme::palette::num::Arithmetics">Arithmetics</a> + <a class="trait" href="num/trait.PartialCmp.html" title="trait cosmic::cosmic_theme::palette::num::PartialCmp">PartialCmp</a>,
&lt;T as <a class="trait" href="bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>&gt;::<a class="associatedtype" href="bool_mask/trait.HasBoolMask.html#associatedtype.Mask" title="type cosmic::cosmic_theme::palette::bool_mask::HasBoolMask::Mask">Mask</a>: <a class="trait" href="bool_mask/trait.LazySelect.html" title="trait cosmic::cosmic_theme::palette::bool_mask::LazySelect">LazySelect</a>&lt;T&gt;,
<a class="struct" href="struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a>&lt;<a class="struct" href="white_point/struct.D65.html" title="struct cosmic::cosmic_theme::palette::white_point::D65">D65</a>, T&gt;: <a class="trait" href="trait.FromColor.html" title="trait cosmic::cosmic_theme::palette::FromColor">FromColor</a>&lt;<a class="struct" href="struct.Okhsl.html" title="struct cosmic::cosmic_theme::palette::Okhsl">Okhsl</a>&lt;T&gt;&gt;,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-6" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/okhsl/properties.rs.html#52">Source</a><a href="#associatedtype.Scalar-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = T</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-RelativeContrast-for-Okhwb%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/okhwb/properties.rs.html#30-34">Source</a><a href="#impl-RelativeContrast-for-Okhwb%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.RelativeContrast.html" title="trait cosmic::cosmic_theme::palette::RelativeContrast">RelativeContrast</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="num/trait.Real.html" title="trait cosmic::cosmic_theme::palette::num::Real">Real</a> + <a class="trait" href="num/trait.Arithmetics.html" title="trait cosmic::cosmic_theme::palette::num::Arithmetics">Arithmetics</a> + <a class="trait" href="num/trait.PartialCmp.html" title="trait cosmic::cosmic_theme::palette::num::PartialCmp">PartialCmp</a>,
&lt;T as <a class="trait" href="bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>&gt;::<a class="associatedtype" href="bool_mask/trait.HasBoolMask.html#associatedtype.Mask" title="type cosmic::cosmic_theme::palette::bool_mask::HasBoolMask::Mask">Mask</a>: <a class="trait" href="bool_mask/trait.LazySelect.html" title="trait cosmic::cosmic_theme::palette::bool_mask::LazySelect">LazySelect</a>&lt;T&gt;,
<a class="struct" href="struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a>&lt;<a class="struct" href="white_point/struct.D65.html" title="struct cosmic::cosmic_theme::palette::white_point::D65">D65</a>, T&gt;: <a class="trait" href="trait.FromColor.html" title="trait cosmic::cosmic_theme::palette::FromColor">FromColor</a>&lt;<a class="struct" href="struct.Okhwb.html" title="struct cosmic::cosmic_theme::palette::Okhwb">Okhwb</a>&lt;T&gt;&gt;,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-7" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/okhwb/properties.rs.html#36">Source</a><a href="#associatedtype.Scalar-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = T</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-RelativeContrast-for-Oklab%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/oklab/properties.rs.html#61-65">Source</a><a href="#impl-RelativeContrast-for-Oklab%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.RelativeContrast.html" title="trait cosmic::cosmic_theme::palette::RelativeContrast">RelativeContrast</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.Real.html" title="trait cosmic::cosmic_theme::palette::num::Real">Real</a> + <a class="trait" href="num/trait.Arithmetics.html" title="trait cosmic::cosmic_theme::palette::num::Arithmetics">Arithmetics</a> + <a class="trait" href="num/trait.PartialCmp.html" title="trait cosmic::cosmic_theme::palette::num::PartialCmp">PartialCmp</a>,
&lt;T as <a class="trait" href="bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>&gt;::<a class="associatedtype" href="bool_mask/trait.HasBoolMask.html#associatedtype.Mask" title="type cosmic::cosmic_theme::palette::bool_mask::HasBoolMask::Mask">Mask</a>: <a class="trait" href="bool_mask/trait.LazySelect.html" title="trait cosmic::cosmic_theme::palette::bool_mask::LazySelect">LazySelect</a>&lt;T&gt;,
<a class="struct" href="struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a>&lt;<a class="struct" href="white_point/struct.D65.html" title="struct cosmic::cosmic_theme::palette::white_point::D65">D65</a>, T&gt;: <a class="trait" href="trait.FromColor.html" title="trait cosmic::cosmic_theme::palette::FromColor">FromColor</a>&lt;<a class="struct" href="struct.Oklab.html" title="struct cosmic::cosmic_theme::palette::Oklab">Oklab</a>&lt;T&gt;&gt;,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-8" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/oklab/properties.rs.html#67">Source</a><a href="#associatedtype.Scalar-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = T</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-RelativeContrast-for-Oklch%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/oklch/properties.rs.html#41-45">Source</a><a href="#impl-RelativeContrast-for-Oklch%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.RelativeContrast.html" title="trait cosmic::cosmic_theme::palette::RelativeContrast">RelativeContrast</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="num/trait.Real.html" title="trait cosmic::cosmic_theme::palette::num::Real">Real</a> + <a class="trait" href="num/trait.Arithmetics.html" title="trait cosmic::cosmic_theme::palette::num::Arithmetics">Arithmetics</a> + <a class="trait" href="num/trait.PartialCmp.html" title="trait cosmic::cosmic_theme::palette::num::PartialCmp">PartialCmp</a>,
&lt;T as <a class="trait" href="bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>&gt;::<a class="associatedtype" href="bool_mask/trait.HasBoolMask.html#associatedtype.Mask" title="type cosmic::cosmic_theme::palette::bool_mask::HasBoolMask::Mask">Mask</a>: <a class="trait" href="bool_mask/trait.LazySelect.html" title="trait cosmic::cosmic_theme::palette::bool_mask::LazySelect">LazySelect</a>&lt;T&gt;,
<a class="struct" href="struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a>&lt;<a class="struct" href="white_point/struct.D65.html" title="struct cosmic::cosmic_theme::palette::white_point::D65">D65</a>, T&gt;: <a class="trait" href="trait.FromColor.html" title="trait cosmic::cosmic_theme::palette::FromColor">FromColor</a>&lt;<a class="struct" href="struct.Oklch.html" title="struct cosmic::cosmic_theme::palette::Oklch">Oklch</a>&lt;T&gt;&gt;,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-9" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/oklch/properties.rs.html#47">Source</a><a href="#associatedtype.Scalar-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = T</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-RelativeContrast-for-Hsluv%3CWp,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/hsluv.rs.html#224-228">Source</a><a href="#impl-RelativeContrast-for-Hsluv%3CWp,+T%3E" class="anchor">§</a><h3 class="code-header">impl&lt;Wp, T&gt; <a class="trait" href="trait.RelativeContrast.html" title="trait cosmic::cosmic_theme::palette::RelativeContrast">RelativeContrast</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="num/trait.Real.html" title="trait cosmic::cosmic_theme::palette::num::Real">Real</a> + <a class="trait" href="num/trait.Arithmetics.html" title="trait cosmic::cosmic_theme::palette::num::Arithmetics">Arithmetics</a> + <a class="trait" href="num/trait.PartialCmp.html" title="trait cosmic::cosmic_theme::palette::num::PartialCmp">PartialCmp</a>,
&lt;T as <a class="trait" href="bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>&gt;::<a class="associatedtype" href="bool_mask/trait.HasBoolMask.html#associatedtype.Mask" title="type cosmic::cosmic_theme::palette::bool_mask::HasBoolMask::Mask">Mask</a>: <a class="trait" href="bool_mask/trait.LazySelect.html" title="trait cosmic::cosmic_theme::palette::bool_mask::LazySelect">LazySelect</a>&lt;T&gt;,
<a class="struct" href="struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a>&lt;Wp, T&gt;: <a class="trait" href="trait.FromColor.html" title="trait cosmic::cosmic_theme::palette::FromColor">FromColor</a>&lt;<a class="struct" href="struct.Hsluv.html" title="struct cosmic::cosmic_theme::palette::Hsluv">Hsluv</a>&lt;Wp, T&gt;&gt;,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-10" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/hsluv.rs.html#230">Source</a><a href="#associatedtype.Scalar-10" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = T</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-RelativeContrast-for-Lab%3CWp,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/lab.rs.html#357-361">Source</a><a href="#impl-RelativeContrast-for-Lab%3CWp,+T%3E" class="anchor">§</a><h3 class="code-header">impl&lt;Wp, T&gt; <a class="trait" href="trait.RelativeContrast.html" title="trait cosmic::cosmic_theme::palette::RelativeContrast">RelativeContrast</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="num/trait.Real.html" title="trait cosmic::cosmic_theme::palette::num::Real">Real</a> + <a class="trait" href="num/trait.Arithmetics.html" title="trait cosmic::cosmic_theme::palette::num::Arithmetics">Arithmetics</a> + <a class="trait" href="num/trait.PartialCmp.html" title="trait cosmic::cosmic_theme::palette::num::PartialCmp">PartialCmp</a>,
&lt;T as <a class="trait" href="bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>&gt;::<a class="associatedtype" href="bool_mask/trait.HasBoolMask.html#associatedtype.Mask" title="type cosmic::cosmic_theme::palette::bool_mask::HasBoolMask::Mask">Mask</a>: <a class="trait" href="bool_mask/trait.LazySelect.html" title="trait cosmic::cosmic_theme::palette::bool_mask::LazySelect">LazySelect</a>&lt;T&gt;,
<a class="struct" href="struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a>&lt;Wp, T&gt;: <a class="trait" href="trait.FromColor.html" title="trait cosmic::cosmic_theme::palette::FromColor">FromColor</a>&lt;<a class="struct" href="struct.Lab.html" title="struct cosmic::cosmic_theme::palette::Lab">Lab</a>&lt;Wp, T&gt;&gt;,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-11" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/lab.rs.html#363">Source</a><a href="#associatedtype.Scalar-11" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = T</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-RelativeContrast-for-Lch%3CWp,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/lch.rs.html#303-307">Source</a><a href="#impl-RelativeContrast-for-Lch%3CWp,+T%3E" class="anchor">§</a><h3 class="code-header">impl&lt;Wp, T&gt; <a class="trait" href="trait.RelativeContrast.html" title="trait cosmic::cosmic_theme::palette::RelativeContrast">RelativeContrast</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="num/trait.Real.html" title="trait cosmic::cosmic_theme::palette::num::Real">Real</a> + <a class="trait" href="num/trait.Arithmetics.html" title="trait cosmic::cosmic_theme::palette::num::Arithmetics">Arithmetics</a> + <a class="trait" href="num/trait.PartialCmp.html" title="trait cosmic::cosmic_theme::palette::num::PartialCmp">PartialCmp</a>,
&lt;T as <a class="trait" href="bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>&gt;::<a class="associatedtype" href="bool_mask/trait.HasBoolMask.html#associatedtype.Mask" title="type cosmic::cosmic_theme::palette::bool_mask::HasBoolMask::Mask">Mask</a>: <a class="trait" href="bool_mask/trait.LazySelect.html" title="trait cosmic::cosmic_theme::palette::bool_mask::LazySelect">LazySelect</a>&lt;T&gt;,
<a class="struct" href="struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a>&lt;Wp, T&gt;: <a class="trait" href="trait.FromColor.html" title="trait cosmic::cosmic_theme::palette::FromColor">FromColor</a>&lt;<a class="struct" href="struct.Lch.html" title="struct cosmic::cosmic_theme::palette::Lch">Lch</a>&lt;Wp, T&gt;&gt;,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-12" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/lch.rs.html#309">Source</a><a href="#associatedtype.Scalar-12" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = T</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-RelativeContrast-for-Lchuv%3CWp,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/lchuv.rs.html#234-238">Source</a><a href="#impl-RelativeContrast-for-Lchuv%3CWp,+T%3E" class="anchor">§</a><h3 class="code-header">impl&lt;Wp, T&gt; <a class="trait" href="trait.RelativeContrast.html" title="trait cosmic::cosmic_theme::palette::RelativeContrast">RelativeContrast</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="num/trait.Real.html" title="trait cosmic::cosmic_theme::palette::num::Real">Real</a> + <a class="trait" href="num/trait.Arithmetics.html" title="trait cosmic::cosmic_theme::palette::num::Arithmetics">Arithmetics</a> + <a class="trait" href="num/trait.PartialCmp.html" title="trait cosmic::cosmic_theme::palette::num::PartialCmp">PartialCmp</a>,
&lt;T as <a class="trait" href="bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>&gt;::<a class="associatedtype" href="bool_mask/trait.HasBoolMask.html#associatedtype.Mask" title="type cosmic::cosmic_theme::palette::bool_mask::HasBoolMask::Mask">Mask</a>: <a class="trait" href="bool_mask/trait.LazySelect.html" title="trait cosmic::cosmic_theme::palette::bool_mask::LazySelect">LazySelect</a>&lt;T&gt;,
<a class="struct" href="struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a>&lt;Wp, T&gt;: <a class="trait" href="trait.FromColor.html" title="trait cosmic::cosmic_theme::palette::FromColor">FromColor</a>&lt;<a class="struct" href="struct.Lchuv.html" title="struct cosmic::cosmic_theme::palette::Lchuv">Lchuv</a>&lt;Wp, T&gt;&gt;,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-13" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/lchuv.rs.html#240">Source</a><a href="#associatedtype.Scalar-13" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = T</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-RelativeContrast-for-Luv%3CWp,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/luv.rs.html#278-283">Source</a><a href="#impl-RelativeContrast-for-Luv%3CWp,+T%3E" class="anchor">§</a><h3 class="code-header">impl&lt;Wp, T&gt; <a class="trait" href="trait.RelativeContrast.html" title="trait cosmic::cosmic_theme::palette::RelativeContrast">RelativeContrast</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="num/trait.Real.html" title="trait cosmic::cosmic_theme::palette::num::Real">Real</a> + <a class="trait" href="num/trait.Arithmetics.html" title="trait cosmic::cosmic_theme::palette::num::Arithmetics">Arithmetics</a> + <a class="trait" href="num/trait.PartialCmp.html" title="trait cosmic::cosmic_theme::palette::num::PartialCmp">PartialCmp</a>,
&lt;T as <a class="trait" href="bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>&gt;::<a class="associatedtype" href="bool_mask/trait.HasBoolMask.html#associatedtype.Mask" title="type cosmic::cosmic_theme::palette::bool_mask::HasBoolMask::Mask">Mask</a>: <a class="trait" href="bool_mask/trait.LazySelect.html" title="trait cosmic::cosmic_theme::palette::bool_mask::LazySelect">LazySelect</a>&lt;T&gt;,
Wp: <a class="trait" href="white_point/trait.WhitePoint.html" title="trait cosmic::cosmic_theme::palette::white_point::WhitePoint">WhitePoint</a>&lt;T&gt;,
<a class="struct" href="struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a>&lt;Wp, T&gt;: <a class="trait" href="trait.FromColor.html" title="trait cosmic::cosmic_theme::palette::FromColor">FromColor</a>&lt;<a class="struct" href="struct.Luv.html" title="struct cosmic::cosmic_theme::palette::Luv">Luv</a>&lt;Wp, T&gt;&gt;,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-14" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/luv.rs.html#285">Source</a><a href="#associatedtype.Scalar-14" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = T</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-RelativeContrast-for-Xyz%3CWp,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/xyz.rs.html#454-457">Source</a><a href="#impl-RelativeContrast-for-Xyz%3CWp,+T%3E" class="anchor">§</a><h3 class="code-header">impl&lt;Wp, T&gt; <a class="trait" href="trait.RelativeContrast.html" title="trait cosmic::cosmic_theme::palette::RelativeContrast">RelativeContrast</a> for <a class="struct" href="struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a>&lt;Wp, 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="num/trait.Arithmetics.html" title="trait cosmic::cosmic_theme::palette::num::Arithmetics">Arithmetics</a> + <a class="trait" href="num/trait.PartialCmp.html" title="trait cosmic::cosmic_theme::palette::num::PartialCmp">PartialCmp</a>,
&lt;T as <a class="trait" href="bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>&gt;::<a class="associatedtype" href="bool_mask/trait.HasBoolMask.html#associatedtype.Mask" title="type cosmic::cosmic_theme::palette::bool_mask::HasBoolMask::Mask">Mask</a>: <a class="trait" href="bool_mask/trait.LazySelect.html" title="trait cosmic::cosmic_theme::palette::bool_mask::LazySelect">LazySelect</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-15" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/xyz.rs.html#459">Source</a><a href="#associatedtype.Scalar-15" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = T</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-RelativeContrast-for-Yxy%3CWp,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/yxy.rs.html#276-279">Source</a><a href="#impl-RelativeContrast-for-Yxy%3CWp,+T%3E" class="anchor">§</a><h3 class="code-header">impl&lt;Wp, T&gt; <a class="trait" href="trait.RelativeContrast.html" title="trait cosmic::cosmic_theme::palette::RelativeContrast">RelativeContrast</a> for <a class="struct" href="struct.Yxy.html" title="struct cosmic::cosmic_theme::palette::Yxy">Yxy</a>&lt;Wp, 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="num/trait.Arithmetics.html" title="trait cosmic::cosmic_theme::palette::num::Arithmetics">Arithmetics</a> + <a class="trait" href="num/trait.PartialCmp.html" title="trait cosmic::cosmic_theme::palette::num::PartialCmp">PartialCmp</a>,
&lt;T as <a class="trait" href="bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>&gt;::<a class="associatedtype" href="bool_mask/trait.HasBoolMask.html#associatedtype.Mask" title="type cosmic::cosmic_theme::palette::bool_mask::HasBoolMask::Mask">Mask</a>: <a class="trait" href="bool_mask/trait.LazySelect.html" title="trait cosmic::cosmic_theme::palette::bool_mask::LazySelect">LazySelect</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-16" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/yxy.rs.html#281">Source</a><a href="#associatedtype.Scalar-16" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = T</h4></section></div></details></div><script src="../../../trait.impl/palette/relative_contrast/trait.RelativeContrast.js" data-ignore-extern-crates="palette" async></script></section></div></main></body></html>