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

12 lines
No EOL
8.7 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 types that can be used as white point parameters in `Parameters`."><title>WhitePointParameter in cosmic::cosmic_theme::palette::cam16 - 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="#">White<wbr>Point<wbr>Parameter</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.StaticWp" title="StaticWp">StaticWp</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.into_xyz" title="into_xyz">into_xyz</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::<wbr>cam16</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>::<wbr><a href="index.html">cam16</a></div><h1>Trait <span class="trait">WhitePointParameter</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/cam16/parameters.rs.html#262">Source</a> </span></div><pre class="rust item-decl"><code>pub trait WhitePointParameter&lt;T&gt; {
type <a href="#associatedtype.StaticWp" class="associatedtype">StaticWp</a>;
// Required method
fn <a href="#tymethod.into_xyz" class="fn">into_xyz</a>(self) -&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.Any.html" title="struct cosmic::cosmic_theme::palette::white_point::Any">Any</a>, T&gt;;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A trait for types that can be used as white point parameters in
<a href="struct.Parameters.html" title="struct cosmic::cosmic_theme::palette::cam16::Parameters"><code>Parameters</code></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.StaticWp" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/parameters.rs.html#265">Source</a><h4 class="code-header">type <a href="#associatedtype.StaticWp" class="associatedtype">StaticWp</a></h4></section></summary><div class="docblock"><p>The static representation of this white point, or <a href="../white_point/struct.Any.html" title="struct cosmic::cosmic_theme::palette::white_point::Any"><code>white_point::Any</code></a>
if its dynamic.</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.into_xyz" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/parameters.rs.html#268">Source</a><h4 class="code-header">fn <a href="#tymethod.into_xyz" class="fn">into_xyz</a>(self) -&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.Any.html" title="struct cosmic::cosmic_theme::palette::white_point::Any">Any</a>, T&gt;</h4></section></summary><div class="docblock"><p>Returns the XYZ value for this white point.</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-WhitePointParameter%3CT%3E-for-Xyz%3CAny,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/parameters.rs.html#271">Source</a><a href="#impl-WhitePointParameter%3CT%3E-for-Xyz%3CAny,+T%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a>&lt;T&gt; for <a class="struct" href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a>&lt;<a class="struct" href="../white_point/struct.Any.html" title="struct cosmic::cosmic_theme::palette::white_point::Any">Any</a>, T&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.StaticWp-1" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/parameters.rs.html#272">Source</a><a href="#associatedtype.StaticWp-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.StaticWp" class="associatedtype">StaticWp</a> = <a class="struct" href="../white_point/struct.Any.html" title="struct cosmic::cosmic_theme::palette::white_point::Any">Any</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WhitePointParameter%3CT%3E-for-StaticWp%3CWp%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/parameters.rs.html#283-285">Source</a><a href="#impl-WhitePointParameter%3CT%3E-for-StaticWp%3CWp%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T, Wp&gt; <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a>&lt;T&gt; for <a class="struct" href="struct.StaticWp.html" title="struct cosmic::cosmic_theme::palette::cam16::StaticWp">StaticWp</a>&lt;Wp&gt;<div class="where">where
Wp: <a class="trait" href="../white_point/trait.WhitePoint.html" title="trait cosmic::cosmic_theme::palette::white_point::WhitePoint">WhitePoint</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.StaticWp-2" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/parameters.rs.html#287">Source</a><a href="#associatedtype.StaticWp-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.StaticWp" class="associatedtype">StaticWp</a> = Wp</h4></section></div></details></div><script src="../../../../trait.impl/palette/cam16/parameters/trait.WhitePointParameter.js" data-ignore-extern-crates="palette" async></script></section></div></main></body></html>