This commit is contained in:
wash2 2026-04-18 20:11:25 +00:00
commit 0fa87f2b35
16382 changed files with 734838 additions and 0 deletions

View file

@ -0,0 +1,2 @@
<!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="Channel orders for packed Luma types."><title>cosmic::cosmic_theme::palette::luma::channels - 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 mod"><!--[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="#">Module channels</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li></ul></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>Module <span>channels</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#3">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Channel orders for packed Luma types.</p>
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Al.html" title="struct cosmic::cosmic_theme::palette::luma::channels::Al">Al</a></dt><dd>Luma+Alpha color packed in AL order.</dd><dt><a class="struct" href="struct.La.html" title="struct cosmic::cosmic_theme::palette::luma::channels::La">La</a></dt><dd>Luma+Alpha color packed in LA order.</dd></dl></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"struct":["Al","La"]};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,3 @@
<!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="Types for luma and luminance (grayscale) values."><title>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 mod"><!--[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="#">Module luma</a></h2><h3><a href="#modules">Module Items</a></h3><ul class="block"><li><a href="#modules" title="Modules">Modules</a></li><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#traits" title="Traits">Traits</a></li><li><a href="#types" title="Type Aliases">Type Aliases</a></li></ul></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>Module <span>luma</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#362">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Types for luma and luminance (grayscale) values.</p>
</div></details><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><dl class="item-table"><dt><a class="mod" href="channels/index.html" title="mod cosmic::cosmic_theme::palette::luma::channels">channels</a></dt><dd>Channel orders for packed Luma types.</dd></dl><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Iter.html" title="struct cosmic::cosmic_theme::palette::luma::Iter">Iter</a></dt><dd>An iterator for <a href="struct.Luma.html" title="struct cosmic::cosmic_theme::palette::luma::Luma"><code>Luma</code></a> values.</dd><dt><a class="struct" href="struct.Luma.html" title="struct cosmic::cosmic_theme::palette::luma::Luma">Luma</a></dt><dd>Luminance.</dd></dl><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.LumaStandard.html" title="trait cosmic::cosmic_theme::palette::luma::LumaStandard">Luma<wbr>Standard</a></dt><dd>A white point and a transfer function.</dd></dl><h2 id="types" class="section-header">Type Aliases<a href="#types" class="anchor">§</a></h2><dl class="item-table"><dt><a class="type" href="type.GammaLuma.html" title="type cosmic::cosmic_theme::palette::luma::GammaLuma">Gamma<wbr>Luma</a></dt><dd>Gamma 2.2 encoded luminance.</dd><dt><a class="type" href="type.GammaLumaa.html" title="type cosmic::cosmic_theme::palette::luma::GammaLumaa">Gamma<wbr>Lumaa</a></dt><dd>Gamma 2.2 encoded luminance with an alpha component.</dd><dt><a class="type" href="type.LinLuma.html" title="type cosmic::cosmic_theme::palette::luma::LinLuma">LinLuma</a></dt><dd>Linear luminance.</dd><dt><a class="type" href="type.LinLumaa.html" title="type cosmic::cosmic_theme::palette::luma::LinLumaa">LinLumaa</a></dt><dd>Linear luminance with an alpha component.</dd><dt><a class="type" href="type.Lumaa.html" title="type cosmic::cosmic_theme::palette::luma::Lumaa">Lumaa</a></dt><dd>Luminance with an alpha component. See the <a href="../struct.Alpha.html#Lumaa" title="struct cosmic::cosmic_theme::palette::Alpha"><code>Lumaa</code> implementation
in <code>Alpha</code></a>.</dd><dt><a class="type" href="type.PackedAluma.html" title="type cosmic::cosmic_theme::palette::luma::PackedAluma">Packed<wbr>Aluma</a></dt><dd>A packed representation of Luma+Alpha in AL order.</dd><dt><a class="type" href="type.PackedLumaa.html" title="type cosmic::cosmic_theme::palette::luma::PackedLumaa">Packed<wbr>Lumaa</a></dt><dd>A packed representation of Luma+Alpha in LA order.</dd><dt><a class="type" href="type.SrgbLuma.html" title="type cosmic::cosmic_theme::palette::luma::SrgbLuma">Srgb<wbr>Luma</a></dt><dd>sRGB encoded luminance.</dd><dt><a class="type" href="type.SrgbLumaa.html" title="type cosmic::cosmic_theme::palette::luma::SrgbLumaa">Srgb<wbr>Lumaa</a></dt><dd>sRGB encoded luminance with an alpha component.</dd></dl></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"mod":["channels"],"struct":["Iter","Luma"],"trait":["LumaStandard"],"type":["GammaLuma","GammaLumaa","LinLuma","LinLumaa","Lumaa","PackedAluma","PackedLumaa","SrgbLuma","SrgbLumaa"]};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,7 @@
<!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="Gamma 2.2 encoded luminance."><title>GammaLuma 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 type"><!--[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="#">Gamma<wbr>Luma</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.luma" title="luma">luma</a></li><li><a href="#structfield.standard" title="standard">standard</a></li></ul></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>Type Alias <span class="type">GammaLuma</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#25">Source</a> </span></div><pre class="rust item-decl"><code>pub type GammaLuma&lt;T = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt; = <a class="struct" href="struct.Luma.html" title="struct cosmic::cosmic_theme::palette::luma::Luma">Luma</a>&lt;<a class="struct" href="../encoding/struct.Gamma.html" title="struct cosmic::cosmic_theme::palette::encoding::Gamma">Gamma</a>&lt;<a class="struct" href="../white_point/struct.D65.html" title="struct cosmic::cosmic_theme::palette::white_point::D65">D65</a>&gt;, T&gt;;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Gamma 2.2 encoded luminance.</p>
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub struct GammaLuma&lt;T = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt; {
pub luma: T,
pub standard: <a class="struct" href="https://doc.rust-lang.org/nightly/core/marker/struct.PhantomData.html" title="struct core::marker::PhantomData">PhantomData</a>&lt;<a class="struct" href="../encoding/struct.Gamma.html" title="struct cosmic::cosmic_theme::palette::encoding::Gamma">Gamma</a>&lt;<a class="struct" href="../white_point/struct.D65.html" title="struct cosmic::cosmic_theme::palette::white_point::D65">D65</a>&gt;&gt;,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.luma" class="structfield section-header"><a href="#structfield.luma" class="anchor field">§</a><code>luma: T</code></span><div class="docblock"><p>The lightness of the color. 0.0 is black and 1.0 is white.</p>
</div><span id="structfield.standard" class="structfield section-header"><a href="#structfield.standard" class="anchor field">§</a><code>standard: <a class="struct" href="https://doc.rust-lang.org/nightly/core/marker/struct.PhantomData.html" title="struct core::marker::PhantomData">PhantomData</a>&lt;<a class="struct" href="../encoding/struct.Gamma.html" title="struct cosmic::cosmic_theme::palette::encoding::Gamma">Gamma</a>&lt;<a class="struct" href="../white_point/struct.D65.html" title="struct cosmic::cosmic_theme::palette::white_point::D65">D65</a>&gt;&gt;</code></span><div class="docblock"><p>The kind of RGB standard. sRGB is the default.</p>
</div><script src="../../../../type.impl/cosmic/cosmic_theme/palette/luma/struct.Luma.js" data-self-path="cosmic::cosmic_theme::palette::GammaLuma" async></script></section></div></main></body></html>

View file

@ -0,0 +1,8 @@
<!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="Gamma 2.2 encoded luminance with an alpha component."><title>GammaLumaa 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 type"><!--[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="#">Gamma<wbr>Lumaa</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.alpha" title="alpha">alpha</a></li><li><a href="#structfield.color" title="color">color</a></li></ul></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>Type Alias <span class="type">GammaLumaa</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#27">Source</a> </span></div><pre class="rust item-decl"><code>pub type GammaLumaa&lt;T = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt; = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="struct.Luma.html" title="struct cosmic::cosmic_theme::palette::luma::Luma">Luma</a>&lt;<a class="struct" href="../encoding/struct.Gamma.html" title="struct cosmic::cosmic_theme::palette::encoding::Gamma">Gamma</a>&lt;<a class="struct" href="../white_point/struct.D65.html" title="struct cosmic::cosmic_theme::palette::white_point::D65">D65</a>&gt;, T&gt;, T&gt;;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Gamma 2.2 encoded luminance with an alpha component.</p>
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub struct GammaLumaa&lt;T = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt; {
pub color: <a class="struct" href="struct.Luma.html" title="struct cosmic::cosmic_theme::palette::luma::Luma">Luma</a>&lt;<a class="struct" href="../encoding/struct.Gamma.html" title="struct cosmic::cosmic_theme::palette::encoding::Gamma">Gamma</a>&lt;<a class="struct" href="../white_point/struct.D65.html" title="struct cosmic::cosmic_theme::palette::white_point::D65">D65</a>&gt;, T&gt;,
pub alpha: T,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.color" class="structfield section-header"><a href="#structfield.color" class="anchor field">§</a><code>color: <a class="struct" href="struct.Luma.html" title="struct cosmic::cosmic_theme::palette::luma::Luma">Luma</a>&lt;<a class="struct" href="../encoding/struct.Gamma.html" title="struct cosmic::cosmic_theme::palette::encoding::Gamma">Gamma</a>&lt;<a class="struct" href="../white_point/struct.D65.html" title="struct cosmic::cosmic_theme::palette::white_point::D65">D65</a>&gt;, T&gt;</code></span><div class="docblock"><p>The color.</p>
</div><span id="structfield.alpha" class="structfield section-header"><a href="#structfield.alpha" class="anchor field">§</a><code>alpha: T</code></span><div class="docblock"><p>The transparency component. 0.0 (or 0u8) is fully transparent and 1.0
(or 255u8) is fully opaque.</p>
</div><script src="../../../../type.impl/cosmic/cosmic_theme/palette/struct.Alpha.js" data-self-path="cosmic::cosmic_theme::palette::GammaLumaa" async></script></section></div></main></body></html>

View file

@ -0,0 +1,7 @@
<!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="Linear luminance."><title>LinLuma 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 type"><!--[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="#">LinLuma</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.luma" title="luma">luma</a></li><li><a href="#structfield.standard" title="standard">standard</a></li></ul></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>Type Alias <span class="type">LinLuma</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#19">Source</a> </span></div><pre class="rust item-decl"><code>pub type LinLuma&lt;Wp = <a class="struct" href="../white_point/struct.D65.html" title="struct cosmic::cosmic_theme::palette::white_point::D65">D65</a>, T = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt; = <a class="struct" href="struct.Luma.html" title="struct cosmic::cosmic_theme::palette::luma::Luma">Luma</a>&lt;<a class="struct" href="../encoding/struct.Linear.html" title="struct cosmic::cosmic_theme::palette::encoding::Linear">Linear</a>&lt;Wp&gt;, T&gt;;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Linear luminance.</p>
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub struct LinLuma&lt;Wp = <a class="struct" href="../white_point/struct.D65.html" title="struct cosmic::cosmic_theme::palette::white_point::D65">D65</a>, T = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt; {
pub luma: T,
pub standard: <a class="struct" href="https://doc.rust-lang.org/nightly/core/marker/struct.PhantomData.html" title="struct core::marker::PhantomData">PhantomData</a>&lt;<a class="struct" href="../encoding/struct.Linear.html" title="struct cosmic::cosmic_theme::palette::encoding::Linear">Linear</a>&lt;Wp&gt;&gt;,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.luma" class="structfield section-header"><a href="#structfield.luma" class="anchor field">§</a><code>luma: T</code></span><div class="docblock"><p>The lightness of the color. 0.0 is black and 1.0 is white.</p>
</div><span id="structfield.standard" class="structfield section-header"><a href="#structfield.standard" class="anchor field">§</a><code>standard: <a class="struct" href="https://doc.rust-lang.org/nightly/core/marker/struct.PhantomData.html" title="struct core::marker::PhantomData">PhantomData</a>&lt;<a class="struct" href="../encoding/struct.Linear.html" title="struct cosmic::cosmic_theme::palette::encoding::Linear">Linear</a>&lt;Wp&gt;&gt;</code></span><div class="docblock"><p>The kind of RGB standard. sRGB is the default.</p>
</div><script src="../../../../type.impl/cosmic/cosmic_theme/palette/luma/struct.Luma.js" data-self-path="cosmic::cosmic_theme::palette::LinLuma" async></script></section></div></main></body></html>

View file

@ -0,0 +1,8 @@
<!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="Linear luminance with an alpha component."><title>LinLumaa 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 type"><!--[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="#">LinLumaa</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.alpha" title="alpha">alpha</a></li><li><a href="#structfield.color" title="color">color</a></li></ul></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>Type Alias <span class="type">LinLumaa</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#22">Source</a> </span></div><pre class="rust item-decl"><code>pub type LinLumaa&lt;Wp = <a class="struct" href="../white_point/struct.D65.html" title="struct cosmic::cosmic_theme::palette::white_point::D65">D65</a>, T = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt; = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="struct.Luma.html" title="struct cosmic::cosmic_theme::palette::luma::Luma">Luma</a>&lt;<a class="struct" href="../encoding/struct.Linear.html" title="struct cosmic::cosmic_theme::palette::encoding::Linear">Linear</a>&lt;Wp&gt;, T&gt;, T&gt;;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Linear luminance with an alpha component.</p>
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub struct LinLumaa&lt;Wp = <a class="struct" href="../white_point/struct.D65.html" title="struct cosmic::cosmic_theme::palette::white_point::D65">D65</a>, T = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt; {
pub color: <a class="struct" href="struct.Luma.html" title="struct cosmic::cosmic_theme::palette::luma::Luma">Luma</a>&lt;<a class="struct" href="../encoding/struct.Linear.html" title="struct cosmic::cosmic_theme::palette::encoding::Linear">Linear</a>&lt;Wp&gt;, T&gt;,
pub alpha: T,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.color" class="structfield section-header"><a href="#structfield.color" class="anchor field">§</a><code>color: <a class="struct" href="struct.Luma.html" title="struct cosmic::cosmic_theme::palette::luma::Luma">Luma</a>&lt;<a class="struct" href="../encoding/struct.Linear.html" title="struct cosmic::cosmic_theme::palette::encoding::Linear">Linear</a>&lt;Wp&gt;, T&gt;</code></span><div class="docblock"><p>The color.</p>
</div><span id="structfield.alpha" class="structfield section-header"><a href="#structfield.alpha" class="anchor field">§</a><code>alpha: T</code></span><div class="docblock"><p>The transparency component. 0.0 (or 0u8) is fully transparent and 1.0
(or 255u8) is fully opaque.</p>
</div><script src="../../../../type.impl/cosmic/cosmic_theme/palette/struct.Alpha.js" data-self-path="cosmic::cosmic_theme::palette::LinLumaa" async></script></section></div></main></body></html>

View file

@ -0,0 +1,9 @@
<!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="Luminance with an alpha component. See the `Lumaa` implementation in `Alpha`."><title>Lumaa 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 type"><!--[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="#">Lumaa</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.alpha" title="alpha">alpha</a></li><li><a href="#structfield.color" title="color">color</a></li></ul></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>Type Alias <span class="type">Lumaa</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/luma.rs.html#24">Source</a> </span></div><pre class="rust item-decl"><code>pub type Lumaa&lt;S = <a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a>, T = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt; = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="struct.Luma.html" title="struct cosmic::cosmic_theme::palette::luma::Luma">Luma</a>&lt;S, T&gt;, T&gt;;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Luminance with an alpha component. See the <a href="../struct.Alpha.html#Lumaa" title="struct cosmic::cosmic_theme::palette::Alpha"><code>Lumaa</code> implementation
in <code>Alpha</code></a>.</p>
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub struct Lumaa&lt;S = <a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a>, T = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt; {
pub color: <a class="struct" href="struct.Luma.html" title="struct cosmic::cosmic_theme::palette::luma::Luma">Luma</a>&lt;S, T&gt;,
pub alpha: T,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.color" class="structfield section-header"><a href="#structfield.color" class="anchor field">§</a><code>color: <a class="struct" href="struct.Luma.html" title="struct cosmic::cosmic_theme::palette::luma::Luma">Luma</a>&lt;S, T&gt;</code></span><div class="docblock"><p>The color.</p>
</div><span id="structfield.alpha" class="structfield section-header"><a href="#structfield.alpha" class="anchor field">§</a><code>alpha: T</code></span><div class="docblock"><p>The transparency component. 0.0 (or 0u8) is fully transparent and 1.0
(or 255u8) is fully opaque.</p>
</div><script src="../../../../type.impl/cosmic/cosmic_theme/palette/struct.Alpha.js" data-self-path="cosmic::cosmic_theme::palette::luma::Lumaa" async></script></section></div></main></body></html>

View file

@ -0,0 +1,8 @@
<!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 packed representation of Luma+Alpha in AL order."><title>PackedAluma 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 type"><!--[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="#">Packed<wbr>Aluma</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.channel_order" title="channel_order">channel_order</a></li><li><a href="#structfield.color" title="color">color</a></li></ul></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>Type Alias <span class="type">PackedAluma</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#47">Source</a> </span></div><pre class="rust item-decl"><code>pub type PackedAluma&lt;P = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt; = <a class="struct" href="../cast/struct.Packed.html" title="struct cosmic::cosmic_theme::palette::cast::Packed">Packed</a>&lt;<a class="struct" href="channels/struct.Al.html" title="struct cosmic::cosmic_theme::palette::luma::channels::Al">Al</a>, P&gt;;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A packed representation of Luma+Alpha in AL order.</p>
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(transparent)]</div>pub struct PackedAluma&lt;P = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt; {
pub color: P,
pub channel_order: <a class="struct" href="https://doc.rust-lang.org/nightly/core/marker/struct.PhantomData.html" title="struct core::marker::PhantomData">PhantomData</a>&lt;<a class="struct" href="channels/struct.Al.html" title="struct cosmic::cosmic_theme::palette::luma::channels::Al">Al</a>&gt;,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.color" class="structfield section-header"><a href="#structfield.color" class="anchor field">§</a><code>color: P</code></span><div class="docblock"><p>The color packed into a type <code>P</code>, such as <code>u32</code> or <code>[u8; 4]</code>.</p>
</div><span id="structfield.channel_order" class="structfield section-header"><a href="#structfield.channel_order" class="anchor field">§</a><code>channel_order: <a class="struct" href="https://doc.rust-lang.org/nightly/core/marker/struct.PhantomData.html" title="struct core::marker::PhantomData">PhantomData</a>&lt;<a class="struct" href="channels/struct.Al.html" title="struct cosmic::cosmic_theme::palette::luma::channels::Al">Al</a>&gt;</code></span><div class="docblock"><p>The channel order for the color components in the packed data. See
<a href="../cast/trait.ComponentOrder.html" title="trait cosmic::cosmic_theme::palette::cast::ComponentOrder"><code>ComponentOrder</code></a>.</p>
</div><script src="../../../../type.impl/cosmic/cosmic_theme/palette/cast/struct.Packed.js" data-self-path="cosmic::cosmic_theme::palette::luma::PackedAluma" async></script></section></div></main></body></html>

View file

@ -0,0 +1,8 @@
<!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 packed representation of Luma+Alpha in LA order."><title>PackedLumaa 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 type"><!--[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="#">Packed<wbr>Lumaa</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.channel_order" title="channel_order">channel_order</a></li><li><a href="#structfield.color" title="color">color</a></li></ul></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>Type Alias <span class="type">PackedLumaa</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#44">Source</a> </span></div><pre class="rust item-decl"><code>pub type PackedLumaa&lt;P = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt; = <a class="struct" href="../cast/struct.Packed.html" title="struct cosmic::cosmic_theme::palette::cast::Packed">Packed</a>&lt;<a class="struct" href="channels/struct.La.html" title="struct cosmic::cosmic_theme::palette::luma::channels::La">La</a>, P&gt;;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A packed representation of Luma+Alpha in LA order.</p>
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(transparent)]</div>pub struct PackedLumaa&lt;P = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>&gt; {
pub color: P,
pub channel_order: <a class="struct" href="https://doc.rust-lang.org/nightly/core/marker/struct.PhantomData.html" title="struct core::marker::PhantomData">PhantomData</a>&lt;<a class="struct" href="channels/struct.La.html" title="struct cosmic::cosmic_theme::palette::luma::channels::La">La</a>&gt;,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.color" class="structfield section-header"><a href="#structfield.color" class="anchor field">§</a><code>color: P</code></span><div class="docblock"><p>The color packed into a type <code>P</code>, such as <code>u32</code> or <code>[u8; 4]</code>.</p>
</div><span id="structfield.channel_order" class="structfield section-header"><a href="#structfield.channel_order" class="anchor field">§</a><code>channel_order: <a class="struct" href="https://doc.rust-lang.org/nightly/core/marker/struct.PhantomData.html" title="struct core::marker::PhantomData">PhantomData</a>&lt;<a class="struct" href="channels/struct.La.html" title="struct cosmic::cosmic_theme::palette::luma::channels::La">La</a>&gt;</code></span><div class="docblock"><p>The channel order for the color components in the packed data. See
<a href="../cast/trait.ComponentOrder.html" title="trait cosmic::cosmic_theme::palette::cast::ComponentOrder"><code>ComponentOrder</code></a>.</p>
</div><script src="../../../../type.impl/cosmic/cosmic_theme/palette/cast/struct.Packed.js" data-self-path="cosmic::cosmic_theme::palette::luma::PackedLumaa" async></script></section></div></main></body></html>

View file

@ -0,0 +1,7 @@
<!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="sRGB encoded luminance."><title>SrgbLuma 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 type"><!--[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="#">Srgb<wbr>Luma</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.luma" title="luma">luma</a></li><li><a href="#structfield.standard" title="standard">standard</a></li></ul></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>Type Alias <span class="type">SrgbLuma</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#13">Source</a> </span></div><pre class="rust item-decl"><code>pub type SrgbLuma&lt;T = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt; = <a class="struct" href="struct.Luma.html" title="struct cosmic::cosmic_theme::palette::luma::Luma">Luma</a>&lt;<a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a>, T&gt;;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>sRGB encoded luminance.</p>
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub struct SrgbLuma&lt;T = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt; {
pub luma: T,
pub standard: <a class="struct" href="https://doc.rust-lang.org/nightly/core/marker/struct.PhantomData.html" title="struct core::marker::PhantomData">PhantomData</a>&lt;<a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a>&gt;,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.luma" class="structfield section-header"><a href="#structfield.luma" class="anchor field">§</a><code>luma: T</code></span><div class="docblock"><p>The lightness of the color. 0.0 is black and 1.0 is white.</p>
</div><span id="structfield.standard" class="structfield section-header"><a href="#structfield.standard" class="anchor field">§</a><code>standard: <a class="struct" href="https://doc.rust-lang.org/nightly/core/marker/struct.PhantomData.html" title="struct core::marker::PhantomData">PhantomData</a>&lt;<a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a>&gt;</code></span><div class="docblock"><p>The kind of RGB standard. sRGB is the default.</p>
</div><script src="../../../../type.impl/cosmic/cosmic_theme/palette/luma/struct.Luma.js" data-self-path="cosmic::cosmic_theme::palette::SrgbLuma" async></script></section></div></main></body></html>

View file

@ -0,0 +1,8 @@
<!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="sRGB encoded luminance with an alpha component."><title>SrgbLumaa 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 type"><!--[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="#">Srgb<wbr>Lumaa</a></h2><h3><a href="#aliased-type">Aliased Type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block field"><li><a href="#structfield.alpha" title="alpha">alpha</a></li><li><a href="#structfield.color" title="color">color</a></li></ul></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>Type Alias <span class="type">SrgbLumaa</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#15">Source</a> </span></div><pre class="rust item-decl"><code>pub type SrgbLumaa&lt;T = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt; = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a>&lt;<a class="struct" href="struct.Luma.html" title="struct cosmic::cosmic_theme::palette::luma::Luma">Luma</a>&lt;<a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a>, T&gt;, T&gt;;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>sRGB encoded luminance with an alpha component.</p>
</div></details><h2 id="aliased-type" class="section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code><div class="code-attribute">#[repr(C)]</div>pub struct SrgbLumaa&lt;T = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt; {
pub color: <a class="struct" href="struct.Luma.html" title="struct cosmic::cosmic_theme::palette::luma::Luma">Luma</a>&lt;<a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a>, T&gt;,
pub alpha: T,
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.color" class="structfield section-header"><a href="#structfield.color" class="anchor field">§</a><code>color: <a class="struct" href="struct.Luma.html" title="struct cosmic::cosmic_theme::palette::luma::Luma">Luma</a>&lt;<a class="struct" href="../encoding/struct.Srgb.html" title="struct cosmic::cosmic_theme::palette::encoding::Srgb">Srgb</a>, T&gt;</code></span><div class="docblock"><p>The color.</p>
</div><span id="structfield.alpha" class="structfield section-header"><a href="#structfield.alpha" class="anchor field">§</a><code>alpha: T</code></span><div class="docblock"><p>The transparency component. 0.0 (or 0u8) is fully transparent and 1.0
(or 255u8) is fully opaque.</p>
</div><script src="../../../../type.impl/cosmic/cosmic_theme/palette/struct.Alpha.js" data-self-path="cosmic::cosmic_theme::palette::SrgbLumaa" async></script></section></div></main></body></html>