8 lines
No EOL
12 KiB
HTML
8 lines
No EOL
12 KiB
HTML
<!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 white point and a transfer function."><title>LumaStandard in cosmic::cosmic_theme::palette::luma - 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="#">Luma<wbr>Standard</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.TransferFn" title="TransferFn">TransferFn</a></li><li><a href="#associatedtype.WhitePoint" title="WhitePoint">WhitePoint</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-LumaStandard-for-(Wp,+Tf)" title="(Wp, Tf)">(Wp, Tf)</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>luma</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">luma</a></div><h1>Trait <span class="trait">LumaStandard</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/luma.rs.html#30">Source</a> </span></div><pre class="rust item-decl"><code>pub trait LumaStandard {
|
|
type <a href="#associatedtype.WhitePoint" class="associatedtype">WhitePoint</a>;
|
|
type <a href="#associatedtype.TransferFn" class="associatedtype">TransferFn</a>;
|
|
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A white point and a transfer function.</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.WhitePoint" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/luma.rs.html#32">Source</a><h4 class="code-header">type <a href="#associatedtype.WhitePoint" class="associatedtype">WhitePoint</a></h4></section></summary><div class="docblock"><p>The white point of the color space.</p>
|
|
</div></details><details class="toggle" open><summary><section id="associatedtype.TransferFn" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/luma.rs.html#35">Source</a><h4 class="code-header">type <a href="#associatedtype.TransferFn" class="associatedtype">TransferFn</a></h4></section></summary><div class="docblock"><p>The transfer function for the luminance component.</p>
|
|
</div></details></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-LumaStandard-for-(Wp,+Tf)" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/luma.rs.html#38">Source</a><a href="#impl-LumaStandard-for-(Wp,+Tf)" class="anchor">§</a><h3 class="code-header">impl<Wp, Tf> <a class="trait" href="trait.LumaStandard.html" title="trait cosmic::cosmic_theme::palette::luma::LumaStandard">LumaStandard</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(Wp, Tf)</a></h3></section></summary><div class="impl-items"><section id="associatedtype.WhitePoint-1" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/luma.rs.html#39">Source</a><a href="#associatedtype.WhitePoint-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.WhitePoint" class="associatedtype">WhitePoint</a> = Wp</h4></section><section id="associatedtype.TransferFn-1" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/luma.rs.html#40">Source</a><a href="#associatedtype.TransferFn-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.TransferFn" class="associatedtype">TransferFn</a> = Tf</h4></section></div></details><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-LumaStandard-for-Srgb" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/encoding/srgb.rs.html#91">Source</a><a href="#impl-LumaStandard-for-Srgb" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.LumaStandard.html" title="trait cosmic::cosmic_theme::palette::luma::LumaStandard">LumaStandard</a> for <a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a></h3></section></summary><div class="impl-items"><section id="associatedtype.WhitePoint-2" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/encoding/srgb.rs.html#92">Source</a><a href="#associatedtype.WhitePoint-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.WhitePoint" class="associatedtype">WhitePoint</a> = <a class="struct" href="../white_point/struct.D65.html" title="struct cosmic::cosmic_theme::palette::white_point::D65">D65</a></h4></section><section id="associatedtype.TransferFn-2" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/encoding/srgb.rs.html#93">Source</a><a href="#associatedtype.TransferFn-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.TransferFn" class="associatedtype">TransferFn</a> = <a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-LumaStandard-for-Linear%3CWp%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/encoding/linear.rs.html#24">Source</a><a href="#impl-LumaStandard-for-Linear%3CWp%3E" class="anchor">§</a><h3 class="code-header">impl<Wp> <a class="trait" href="trait.LumaStandard.html" title="trait cosmic::cosmic_theme::palette::luma::LumaStandard">LumaStandard</a> for <a class="struct" href="../encoding/struct.Linear.html" title="struct cosmic::cosmic_theme::palette::encoding::Linear">Linear</a><Wp></h3></section></summary><div class="impl-items"><section id="associatedtype.WhitePoint-3" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/encoding/linear.rs.html#25">Source</a><a href="#associatedtype.WhitePoint-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.WhitePoint" class="associatedtype">WhitePoint</a> = Wp</h4></section><section id="associatedtype.TransferFn-3" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/encoding/linear.rs.html#26">Source</a><a href="#associatedtype.TransferFn-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.TransferFn" class="associatedtype">TransferFn</a> = <a class="struct" href="../encoding/linear/struct.LinearFn.html" title="struct cosmic::cosmic_theme::palette::encoding::linear::LinearFn">LinearFn</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-LumaStandard-for-Gamma%3CWp,+N%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/encoding/gamma.rs.html#36-38">Source</a><a href="#impl-LumaStandard-for-Gamma%3CWp,+N%3E" class="anchor">§</a><h3 class="code-header">impl<Wp, N> <a class="trait" href="trait.LumaStandard.html" title="trait cosmic::cosmic_theme::palette::luma::LumaStandard">LumaStandard</a> for <a class="struct" href="../encoding/struct.Gamma.html" title="struct cosmic::cosmic_theme::palette::encoding::Gamma">Gamma</a><Wp, N><div class="where">where
|
|
N: <a class="trait" href="../encoding/gamma/trait.Number.html" title="trait cosmic::cosmic_theme::palette::encoding::gamma::Number">Number</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.WhitePoint-4" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/encoding/gamma.rs.html#40">Source</a><a href="#associatedtype.WhitePoint-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.WhitePoint" class="associatedtype">WhitePoint</a> = Wp</h4></section><section id="associatedtype.TransferFn-4" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/encoding/gamma.rs.html#41">Source</a><a href="#associatedtype.TransferFn-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.TransferFn" class="associatedtype">TransferFn</a> = <a class="struct" href="../encoding/gamma/struct.GammaFn.html" title="struct cosmic::cosmic_theme::palette::encoding::gamma::GammaFn">GammaFn</a><N></h4></section></div></details></div><script src="../../../../trait.impl/palette/luma/trait.LumaStandard.js" data-ignore-extern-crates="palette,std" async></script></section></div></main></body></html> |