deploy: 95756b1a57
This commit is contained in:
commit
0fa87f2b35
16382 changed files with 734838 additions and 0 deletions
4
cosmic/cosmic_theme/composite/fn.over.html
Normal file
4
cosmic/cosmic_theme/composite/fn.over.html
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<!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="straight alpha “A over B” operator on non-linear srgba"><title>over in cosmic::cosmic_theme::composite - 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 fn"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cosmic_<wbr>theme::<wbr>composite</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">composite</a></div><h1>Function <span class="fn">over</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub fn over<A, B>(a: A, b: B) -> <a class="struct" href="../palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><<a class="struct" href="../palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>><div class="where">where
|
||||
A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><<a class="struct" href="../palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>>>,
|
||||
B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="../palette/struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><<a class="struct" href="../palette/rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>>>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>straight alpha “A over B” operator on non-linear srgba</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/cosmic_theme/composite/index.html
Normal file
2
cosmic/cosmic_theme/composite/index.html
Normal 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="composite colors in srgb"><title>cosmic::cosmic_theme::composite - 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 composite</a></h2><h3><a href="#functions">Module Items</a></h3><ul class="block"><li><a href="#functions" title="Functions">Functions</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>cosmic_<wbr>theme</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></div><h1>Module <span>composite</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>composite colors in srgb</p>
|
||||
</div></details><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><dl class="item-table"><dt><a class="fn" href="fn.over.html" title="fn cosmic::cosmic_theme::composite::over">over</a></dt><dd>straight alpha “A over B” operator on non-linear srgba</dd></dl></section></div></main></body></html>
|
||||
1
cosmic/cosmic_theme/composite/sidebar-items.js
Normal file
1
cosmic/cosmic_theme/composite/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"fn":["over"]};
|
||||
2
cosmic/cosmic_theme/constant.DARK_THEME_BUILDER_ID.html
Normal file
2
cosmic/cosmic_theme/constant.DARK_THEME_BUILDER_ID.html
Normal 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="ID for the current dark `ThemeBuilder` config"><title>DARK_THEME_BUILDER_ID in cosmic::cosmic_theme - 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 constant"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cosmic_<wbr>theme</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></div><h1>Constant <span class="constant">DARK_THEME_BUILDER_ID</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub const DARK_THEME_BUILDER_ID: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>ID for the current dark <code>ThemeBuilder</code> config</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/cosmic_theme/constant.DARK_THEME_ID.html
Normal file
2
cosmic/cosmic_theme/constant.DARK_THEME_ID.html
Normal 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="ID for the current dark Theme config"><title>DARK_THEME_ID in cosmic::cosmic_theme - 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 constant"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cosmic_<wbr>theme</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></div><h1>Constant <span class="constant">DARK_THEME_ID</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub const DARK_THEME_ID: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>ID for the current dark Theme config</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/cosmic_theme/constant.LIGHT_THEME_BUILDER_ID.html
Normal file
2
cosmic/cosmic_theme/constant.LIGHT_THEME_BUILDER_ID.html
Normal 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="ID for the current light `ThemeBuilder`` config"><title>LIGHT_THEME_BUILDER_ID in cosmic::cosmic_theme - 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 constant"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cosmic_<wbr>theme</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></div><h1>Constant <span class="constant">LIGHT_THEME_BUILDER_ID</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub const LIGHT_THEME_BUILDER_ID: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>ID for the current light `ThemeBuilder`` config</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/cosmic_theme/constant.LIGHT_THEME_ID.html
Normal file
2
cosmic/cosmic_theme/constant.LIGHT_THEME_ID.html
Normal 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="ID for the current light Theme config"><title>LIGHT_THEME_ID in cosmic::cosmic_theme - 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 constant"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cosmic_<wbr>theme</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></div><h1>Constant <span class="constant">LIGHT_THEME_ID</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub const LIGHT_THEME_ID: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>ID for the current light Theme config</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/cosmic_theme/constant.NAME.html
Normal file
2
cosmic/cosmic_theme/constant.NAME.html
Normal 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="name of cosmic theme"><title>NAME in cosmic::cosmic_theme - 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 constant"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cosmic_<wbr>theme</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></div><h1>Constant <span class="constant">NAME</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub const NAME: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>name of cosmic theme</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
cosmic/cosmic_theme/constant.THEME_MODE_ID.html
Normal file
2
cosmic/cosmic_theme/constant.THEME_MODE_ID.html
Normal 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="ID for the ThemeMode config"><title>THEME_MODE_ID in cosmic::cosmic_theme - 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 constant"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cosmic_<wbr>theme</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></div><h1>Constant <span class="constant">THEME_MODE_ID</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub const THEME_MODE_ID: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>ID for the ThemeMode config</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
92
cosmic/cosmic_theme/enum.CosmicPalette.html
Normal file
92
cosmic/cosmic_theme/enum.CosmicPalette.html
Normal file
File diff suppressed because one or more lines are too long
92
cosmic/cosmic_theme/enum.Density.html
Normal file
92
cosmic/cosmic_theme/enum.Density.html
Normal file
File diff suppressed because one or more lines are too long
92
cosmic/cosmic_theme/enum.Layer.html
Normal file
92
cosmic/cosmic_theme/enum.Layer.html
Normal file
File diff suppressed because one or more lines are too long
5
cosmic/cosmic_theme/index.html
Normal file
5
cosmic/cosmic_theme/index.html
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<!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="Cosmic theme library."><title>cosmic::cosmic_theme - 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="../../crates.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 crate"><!--[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"><ul class="block"><li><a id="all-types" href="all.html">All Items</a></li></ul><section id="rustdoc-toc"><h3><a href="#modules">Crate 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="#enums" title="Enums">Enums</a></li><li><a href="#constants" title="Constants">Constants</a></li><li><a href="#statics" title="Statics">Statics</a></li><li><a href="#traits" title="Traits">Traits</a></li></ul></section><div id="rustdoc-modnav"></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></div><h1>Crate <span>cosmic_theme</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Cosmic theme library.</p>
|
||||
<p>Provides utilities for creating custom cosmic themes.</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="composite/index.html" title="mod cosmic::cosmic_theme::composite">composite</a></dt><dd>composite colors in srgb</dd><dt><a class="mod" href="palette/index.html" title="mod cosmic::cosmic_theme::palette">palette</a></dt><dd>A library that makes linear color calculations and conversion easy and
|
||||
accessible for anyone. It uses the type system to enforce correctness and to
|
||||
avoid mistakes, such as mixing incompatible color types.</dd><dt><a class="mod" href="steps/index.html" title="mod cosmic::cosmic_theme::steps">steps</a></dt><dd>get color steps</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.Component.html" title="struct cosmic::cosmic_theme::Component">Component</a></dt><dd>The colors for a widget of the Cosmic theme</dd><dt><a class="struct" href="struct.Container.html" title="struct cosmic::cosmic_theme::Container">Container</a></dt><dd>Theme Container colors of a theme, can be a theme background container, primary container, or secondary container</dd><dt><a class="struct" href="struct.CornerRadii.html" title="struct cosmic::cosmic_theme::CornerRadii">Corner<wbr>Radii</a></dt><dd>Corner radii variables for the Cosmic theme</dd><dt><a class="struct" href="struct.CosmicPaletteInner.html" title="struct cosmic::cosmic_theme::CosmicPaletteInner">Cosmic<wbr>Palette<wbr>Inner</a></dt><dd>The palette for Cosmic Theme, from which all color properties are derived</dd><dt><a class="struct" href="struct.Spacing.html" title="struct cosmic::cosmic_theme::Spacing">Spacing</a></dt><dd>Spacing variables for the Cosmic theme</dd><dt><a class="struct" href="struct.Theme.html" title="struct cosmic::cosmic_theme::Theme">Theme</a></dt><dd>Cosmic Theme data structure with all colors and its name</dd><dt><a class="struct" href="struct.ThemeBuilder.html" title="struct cosmic::cosmic_theme::ThemeBuilder">Theme<wbr>Builder</a></dt><dd>Helper for building customized themes</dd><dt><a class="struct" href="struct.ThemeMode.html" title="struct cosmic::cosmic_theme::ThemeMode">Theme<wbr>Mode</a></dt><dd>The config for cosmic theme dark / light settings</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.CosmicPalette.html" title="enum cosmic::cosmic_theme::CosmicPalette">Cosmic<wbr>Palette</a></dt><dd>Palette type</dd><dt><a class="enum" href="enum.Density.html" title="enum cosmic::cosmic_theme::Density">Density</a></dt><dd>Density options for the Cosmic theme</dd><dt><a class="enum" href="enum.Layer.html" title="enum cosmic::cosmic_theme::Layer">Layer</a></dt><dd>Theme layer type</dd></dl><h2 id="constants" class="section-header">Constants<a href="#constants" class="anchor">§</a></h2><dl class="item-table"><dt><a class="constant" href="constant.DARK_THEME_BUILDER_ID.html" title="constant cosmic::cosmic_theme::DARK_THEME_BUILDER_ID">DARK_<wbr>THEME_<wbr>BUILDER_<wbr>ID</a></dt><dd>ID for the current dark <code>ThemeBuilder</code> config</dd><dt><a class="constant" href="constant.DARK_THEME_ID.html" title="constant cosmic::cosmic_theme::DARK_THEME_ID">DARK_<wbr>THEME_<wbr>ID</a></dt><dd>ID for the current dark Theme config</dd><dt><a class="constant" href="constant.LIGHT_THEME_BUILDER_ID.html" title="constant cosmic::cosmic_theme::LIGHT_THEME_BUILDER_ID">LIGHT_<wbr>THEME_<wbr>BUILDER_<wbr>ID</a></dt><dd>ID for the current light `ThemeBuilder`` config</dd><dt><a class="constant" href="constant.LIGHT_THEME_ID.html" title="constant cosmic::cosmic_theme::LIGHT_THEME_ID">LIGHT_<wbr>THEME_<wbr>ID</a></dt><dd>ID for the current light Theme config</dd><dt><a class="constant" href="constant.NAME.html" title="constant cosmic::cosmic_theme::NAME">NAME</a></dt><dd>name of cosmic theme</dd><dt><a class="constant" href="constant.THEME_MODE_ID.html" title="constant cosmic::cosmic_theme::THEME_MODE_ID">THEME_<wbr>MODE_<wbr>ID</a></dt><dd>ID for the ThemeMode config</dd></dl><h2 id="statics" class="section-header">Statics<a href="#statics" class="anchor">§</a></h2><dl class="item-table"><dt><a class="static" href="static.DARK_PALETTE.html" title="static cosmic::cosmic_theme::DARK_PALETTE">DARK_<wbr>PALETTE</a></dt><dd>built-in dark palette</dd><dt><a class="static" href="static.LIGHT_PALETTE.html" title="static cosmic::cosmic_theme::LIGHT_PALETTE">LIGHT_<wbr>PALETTE</a></dt><dd>built-in light palette</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.LayeredTheme.html" title="trait cosmic::cosmic_theme::LayeredTheme">Layered<wbr>Theme</a></dt><dd>Trait for layered themes</dd></dl></section></div></main></body></html>
|
||||
6
cosmic/cosmic_theme/palette/alpha/derive.WithAlpha.html
Normal file
6
cosmic/cosmic_theme/palette/alpha/derive.WithAlpha.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<!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="API documentation for the Rust `WithAlpha` derive in crate `cosmic`."><title>WithAlpha in cosmic::cosmic_theme::palette::alpha - 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 derive"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cosmic_<wbr>theme::<wbr>palette::<wbr>alpha</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">alpha</a></div><h1>Derive Macro <span class="derive">WithAlpha</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>#[derive(WithAlpha)]
|
||||
{
|
||||
<span class="comment">// Attributes available to this derive:</span>
|
||||
#[palette]
|
||||
}
|
||||
</code></pre></section></div></main></body></html>
|
||||
2
cosmic/cosmic_theme/palette/alpha/index.html
Normal file
2
cosmic/cosmic_theme/palette/alpha/index.html
Normal 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="Types related to transparent colors."><title>cosmic::cosmic_theme::palette::alpha - 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 alpha</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#traits" title="Traits">Traits</a></li><li><a href="#derives" title="Derive Macros">Derive Macros</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>alpha</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#343">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Types related to transparent colors.</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.Alpha.html" title="struct cosmic::cosmic_theme::palette::alpha::Alpha">Alpha</a></dt><dd>An alpha component wrapper for colors, for adding transparency.</dd><dt><a class="struct" href="struct.Iter.html" title="struct cosmic::cosmic_theme::palette::alpha::Iter">Iter</a></dt><dd>An iterator for transparent colors.</dd><dt><a class="struct" href="struct.PreAlpha.html" title="struct cosmic::cosmic_theme::palette::alpha::PreAlpha">PreAlpha</a></dt><dd>Premultiplied alpha wrapper.</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.WithAlpha.html" title="trait cosmic::cosmic_theme::palette::alpha::WithAlpha">With<wbr>Alpha</a></dt><dd>A trait for color types that can have or be given transparency (alpha channel).</dd></dl><h2 id="derives" class="section-header">Derive Macros<a href="#derives" class="anchor">§</a></h2><dl class="item-table"><dt><a class="derive" href="derive.WithAlpha.html" title="derive cosmic::cosmic_theme::palette::alpha::WithAlpha">With<wbr>Alpha</a></dt></dl></section></div></main></body></html>
|
||||
1
cosmic/cosmic_theme/palette/alpha/sidebar-items.js
Normal file
1
cosmic/cosmic_theme/palette/alpha/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"derive":["WithAlpha"],"struct":["Alpha","Iter","PreAlpha"],"trait":["WithAlpha"]};
|
||||
3350
cosmic/cosmic_theme/palette/alpha/struct.Alpha.html
Normal file
3350
cosmic/cosmic_theme/palette/alpha/struct.Alpha.html
Normal file
File diff suppressed because one or more lines are too long
305
cosmic/cosmic_theme/palette/alpha/struct.Iter.html
Normal file
305
cosmic/cosmic_theme/palette/alpha/struct.Iter.html
Normal file
File diff suppressed because one or more lines are too long
343
cosmic/cosmic_theme/palette/alpha/struct.PreAlpha.html
Normal file
343
cosmic/cosmic_theme/palette/alpha/struct.PreAlpha.html
Normal file
File diff suppressed because one or more lines are too long
157
cosmic/cosmic_theme/palette/alpha/trait.WithAlpha.html
Normal file
157
cosmic/cosmic_theme/palette/alpha/trait.WithAlpha.html
Normal file
|
|
@ -0,0 +1,157 @@
|
|||
<!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 color types that can have or be given transparency (alpha channel)."><title>WithAlpha in cosmic::cosmic_theme::palette::alpha - 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="#">With<wbr>Alpha</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#deriving" title="Deriving">Deriving</a></li></ul><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Color" title="Color">Color</a></li><li><a href="#associatedtype.WithAlpha" title="WithAlpha">WithAlpha</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.split" title="split">split</a></li><li><a href="#tymethod.with_alpha" title="with_alpha">with_alpha</a></li><li><a href="#tymethod.without_alpha" title="without_alpha">without_alpha</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.opaque" title="opaque">opaque</a></li><li><a href="#method.transparent" title="transparent">transparent</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::<wbr>alpha</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">alpha</a></div><h1>Trait <span class="trait">WithAlpha</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/alpha.rs.html#76">Source</a> </span></div><pre class="rust item-decl"><code>pub trait WithAlpha<A>: <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.Color" class="associatedtype">Color</a>;
|
||||
type <a href="#associatedtype.WithAlpha" class="associatedtype">WithAlpha</a>: <a class="trait" href="../trait.WithAlpha.html" title="trait cosmic::cosmic_theme::palette::WithAlpha">WithAlpha</a><A, Color = Self::<a class="associatedtype" href="../trait.WithAlpha.html#associatedtype.Color" title="type cosmic::cosmic_theme::palette::WithAlpha::Color">Color</a>, WithAlpha = Self::<a class="associatedtype" href="../trait.WithAlpha.html#associatedtype.WithAlpha" title="type cosmic::cosmic_theme::palette::WithAlpha::WithAlpha">WithAlpha</a>>;
|
||||
|
||||
// Required methods
|
||||
fn <a href="#tymethod.with_alpha" class="fn">with_alpha</a>(self, alpha: A) -> Self::<a class="associatedtype" href="../trait.WithAlpha.html#associatedtype.WithAlpha" title="type cosmic::cosmic_theme::palette::WithAlpha::WithAlpha">WithAlpha</a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.without_alpha" class="fn">without_alpha</a>(self) -> Self::<a class="associatedtype" href="../trait.WithAlpha.html#associatedtype.Color" title="type cosmic::cosmic_theme::palette::WithAlpha::Color">Color</a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.split" class="fn">split</a>(self) -> (Self::<a class="associatedtype" href="../trait.WithAlpha.html#associatedtype.Color" title="type cosmic::cosmic_theme::palette::WithAlpha::Color">Color</a>, A);
|
||||
|
||||
// Provided methods
|
||||
fn <a href="#method.opaque" class="fn">opaque</a>(self) -> Self::<a class="associatedtype" href="../trait.WithAlpha.html#associatedtype.WithAlpha" title="type cosmic::cosmic_theme::palette::WithAlpha::WithAlpha">WithAlpha</a>
|
||||
<span class="where">where A: <a class="trait" href="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a></span> { ... }
|
||||
<span class="item-spacer"></span> fn <a href="#method.transparent" class="fn">transparent</a>(self) -> Self::<a class="associatedtype" href="../trait.WithAlpha.html#associatedtype.WithAlpha" title="type cosmic::cosmic_theme::palette::WithAlpha::WithAlpha">WithAlpha</a>
|
||||
<span class="where">where A: <a class="trait" href="../num/trait.Zero.html" title="trait cosmic::cosmic_theme::palette::num::Zero">Zero</a></span> { ... }
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A trait for color types that can have or be given transparency (alpha channel).</p>
|
||||
<p><code>WithAlpha</code> is an interface for adding, removing and setting the alpha
|
||||
channel of a color type. The color type itself doesn’t need to store the
|
||||
transparency value as it can be transformed into or wrapped in a type that
|
||||
has a representation of transparency. This would typically be done by
|
||||
wrapping it in an <a href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha"><code>Alpha</code></a> instance.</p>
|
||||
<h2 id="deriving"><a class="doc-anchor" href="#deriving">§</a>Deriving</h2>
|
||||
<p>The trait is trivial enough to be automatically derived. If the color type
|
||||
has a field for transparency (an alpha channel), it has to be marked with
|
||||
<code>#[palette(alpha)]</code> to be taken into account.</p>
|
||||
<p>Derived without an internal alpha channel:</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>palette::WithAlpha;
|
||||
|
||||
<span class="attr">#[derive(WithAlpha)]
|
||||
</span><span class="kw">struct </span>CustomColor {
|
||||
redness: f32,
|
||||
glow: f32,
|
||||
glitter: f32,
|
||||
}
|
||||
|
||||
<span class="kw">let </span>color = CustomColor {
|
||||
redness: <span class="number">0.8</span>,
|
||||
glow: <span class="number">2.5</span>,
|
||||
glitter: <span class="number">1000.0
|
||||
</span>};
|
||||
<span class="kw">let </span>transparent = color.with_alpha(<span class="number">0.3</span>);
|
||||
|
||||
<span class="macro">assert_eq!</span>(transparent.alpha, <span class="number">0.3</span>);</code></pre></div>
|
||||
<p>Derived with an internal alpha channel:</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>palette::WithAlpha;
|
||||
|
||||
<span class="attr">#[derive(WithAlpha)]
|
||||
</span><span class="kw">struct </span>CustomColor {
|
||||
redness: f32,
|
||||
glow: f32,
|
||||
glitter: f32,
|
||||
|
||||
<span class="attr">#[palette(alpha)]
|
||||
</span>alpha: u8,
|
||||
}
|
||||
|
||||
<span class="kw">let </span>color = CustomColor {
|
||||
redness: <span class="number">0.8</span>,
|
||||
glow: <span class="number">2.5</span>,
|
||||
glitter: <span class="number">1000.0</span>,
|
||||
alpha: <span class="number">255
|
||||
</span>};
|
||||
<span class="kw">let </span>transparent = color.with_alpha(<span class="number">10</span>);
|
||||
|
||||
<span class="macro">assert_eq!</span>(transparent.alpha, <span class="number">10</span>);</code></pre></div>
|
||||
</div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.Color" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/alpha.rs.html#80">Source</a><h4 class="code-header">type <a href="#associatedtype.Color" class="associatedtype">Color</a></h4></section></summary><div class="docblock"><p>The opaque color type, without any transparency.</p>
|
||||
<p>This is typically <code>Self</code>.</p>
|
||||
</div></details><details class="toggle" open><summary><section id="associatedtype.WithAlpha" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/alpha.rs.html#85">Source</a><h4 class="code-header">type <a href="#associatedtype.WithAlpha" class="associatedtype">WithAlpha</a>: <a class="trait" href="../trait.WithAlpha.html" title="trait cosmic::cosmic_theme::palette::WithAlpha">WithAlpha</a><A, Color = Self::<a class="associatedtype" href="../trait.WithAlpha.html#associatedtype.Color" title="type cosmic::cosmic_theme::palette::WithAlpha::Color">Color</a>, WithAlpha = Self::<a class="associatedtype" href="../trait.WithAlpha.html#associatedtype.WithAlpha" title="type cosmic::cosmic_theme::palette::WithAlpha::WithAlpha">WithAlpha</a>></h4></section></summary><div class="docblock"><p>The color type with transparency applied.</p>
|
||||
<p>This is typically <code>Alpha<Self::Color, A></code>.</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.with_alpha" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/alpha.rs.html#105">Source</a><h4 class="code-header">fn <a href="#tymethod.with_alpha" class="fn">with_alpha</a>(self, alpha: A) -> Self::<a class="associatedtype" href="../trait.WithAlpha.html#associatedtype.WithAlpha" title="type cosmic::cosmic_theme::palette::WithAlpha::WithAlpha">WithAlpha</a></h4></section></summary><div class="docblock"><p>Transforms the color into a transparent color with the provided
|
||||
alpha value. If <code>Self</code> already has a transparency, it is
|
||||
overwritten.</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>palette::{Srgb, WithAlpha};
|
||||
|
||||
<span class="kw">let </span>color = Srgb::new(<span class="number">255u8</span>, <span class="number">0</span>, <span class="number">255</span>);
|
||||
|
||||
<span class="comment">// This results in an `Alpha<Srgb<u8>, f32>`
|
||||
</span><span class="kw">let </span>transparent = color.with_alpha(<span class="number">0.3f32</span>);
|
||||
<span class="macro">assert_eq!</span>(transparent.alpha, <span class="number">0.3</span>);
|
||||
|
||||
<span class="comment">// This changes the transparency to 0.8
|
||||
</span><span class="kw">let </span>transparent = transparent.with_alpha(<span class="number">0.8f32</span>);
|
||||
<span class="macro">assert_eq!</span>(transparent.alpha, <span class="number">0.8</span>);</code></pre></div>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.without_alpha" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/alpha.rs.html#121">Source</a><h4 class="code-header">fn <a href="#tymethod.without_alpha" class="fn">without_alpha</a>(self) -> Self::<a class="associatedtype" href="../trait.WithAlpha.html#associatedtype.Color" title="type cosmic::cosmic_theme::palette::WithAlpha::Color">Color</a></h4></section></summary><div class="docblock"><p>Removes the transparency from the color. If <code>Self::Color</code> has
|
||||
an internal transparency field, that field will be set to
|
||||
<code>A::max_intensity()</code> to make it opaque.</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>palette::{Srgba, Srgb, WithAlpha};
|
||||
|
||||
<span class="kw">let </span>transparent = Srgba::new(<span class="number">255u8</span>, <span class="number">0</span>, <span class="number">255</span>, <span class="number">10</span>);
|
||||
|
||||
<span class="comment">// This unwraps the color information from the `Alpha` wrapper
|
||||
</span><span class="kw">let </span>color = transparent.without_alpha();
|
||||
<span class="macro">assert_eq!</span>(transparent.color, color);</code></pre></div>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.split" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/alpha.rs.html#141">Source</a><h4 class="code-header">fn <a href="#tymethod.split" class="fn">split</a>(self) -> (Self::<a class="associatedtype" href="../trait.WithAlpha.html#associatedtype.Color" title="type cosmic::cosmic_theme::palette::WithAlpha::Color">Color</a>, A)</h4></section></summary><div class="docblock"><p>Splits the color into separate color and transparency values.</p>
|
||||
<p>A color without any transparency field will return
|
||||
<code>A::max_intensity()</code> instead. If <code>Self::Color</code> has an internal
|
||||
transparency field, that field will be set to
|
||||
<code>A::max_intensity()</code> to make it opaque.</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>palette::{Srgba, Srgb, WithAlpha};
|
||||
|
||||
<span class="kw">let </span>transparent = Srgba::new(<span class="number">255u8</span>, <span class="number">0</span>, <span class="number">255</span>, <span class="number">10</span>);
|
||||
|
||||
<span class="comment">// This unwraps both the color and alpha from the `Alpha` wrapper
|
||||
</span><span class="kw">let </span>(color, alpha) = transparent.split();
|
||||
<span class="macro">assert_eq!</span>(transparent.color, color);
|
||||
<span class="macro">assert_eq!</span>(transparent.alpha, alpha);</code></pre></div>
|
||||
</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.opaque" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/alpha.rs.html#156-158">Source</a><h4 class="code-header">fn <a href="#method.opaque" class="fn">opaque</a>(self) -> Self::<a class="associatedtype" href="../trait.WithAlpha.html#associatedtype.WithAlpha" title="type cosmic::cosmic_theme::palette::WithAlpha::WithAlpha">WithAlpha</a><div class="where">where
|
||||
A: <a class="trait" href="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a>,</div></h4></section></summary><div class="docblock"><p>Transforms the color into a fully opaque color with a transparency
|
||||
field. If <code>Self</code> already has a transparency, it is overwritten.</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>palette::{Srgb, Srgba, WithAlpha};
|
||||
|
||||
<span class="kw">let </span>color = Srgb::new(<span class="number">255u8</span>, <span class="number">0</span>, <span class="number">255</span>);
|
||||
|
||||
<span class="kw">let </span>opaque: Srgba<u8> = color.opaque();
|
||||
<span class="macro">assert_eq!</span>(opaque.alpha, <span class="number">255</span>);</code></pre></div>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.transparent" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/alpha.rs.html#176-178">Source</a><h4 class="code-header">fn <a href="#method.transparent" class="fn">transparent</a>(self) -> Self::<a class="associatedtype" href="../trait.WithAlpha.html#associatedtype.WithAlpha" title="type cosmic::cosmic_theme::palette::WithAlpha::WithAlpha">WithAlpha</a><div class="where">where
|
||||
A: <a class="trait" href="../num/trait.Zero.html" title="trait cosmic::cosmic_theme::palette::num::Zero">Zero</a>,</div></h4></section></summary><div class="docblock"><p>Transforms the color into a fully transparent color. If <code>Self</code>
|
||||
already has a transparency, it is overwritten.</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>palette::{Srgb, Srgba, WithAlpha};
|
||||
|
||||
<span class="kw">let </span>color = Srgb::new(<span class="number">255u8</span>, <span class="number">0</span>, <span class="number">255</span>);
|
||||
|
||||
<span class="kw">let </span>transparent: Srgba<u8> = color.transparent();
|
||||
<span class="macro">assert_eq!</span>(transparent.alpha, <span class="number">0</span>);</code></pre></div>
|
||||
</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-WithAlpha%3CA%3E-for-Alpha%3CC,+A%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/alpha/alpha.rs.html#208">Source</a><a href="#impl-WithAlpha%3CA%3E-for-Alpha%3CC,+A%3E" class="anchor">§</a><h3 class="code-header">impl<C, A> <a class="trait" href="../trait.WithAlpha.html" title="trait cosmic::cosmic_theme::palette::WithAlpha">WithAlpha</a><A> for <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><C, A></h3></section></summary><div class="impl-items"><section id="associatedtype.Color-1" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/alpha/alpha.rs.html#209">Source</a><a href="#associatedtype.Color-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Color" class="associatedtype">Color</a> = C</h4></section><section id="associatedtype.WithAlpha-1" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/alpha/alpha.rs.html#210">Source</a><a href="#associatedtype.WithAlpha-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.WithAlpha" class="associatedtype">WithAlpha</a> = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><C, A></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithAlpha%3C_A%3E-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#33">Source</a><a href="#impl-WithAlpha%3C_A%3E-for-Luma%3CS,+T%3E" class="anchor">§</a><h3 class="code-header">impl<S, T, _A> <a class="trait" href="../trait.WithAlpha.html" title="trait cosmic::cosmic_theme::palette::WithAlpha">WithAlpha</a><_A> for <a class="struct" href="../luma/struct.Luma.html" title="struct cosmic::cosmic_theme::palette::luma::Luma">Luma</a><S, T><div class="where">where
|
||||
_A: <a class="trait" href="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Color-2" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/luma/luma.rs.html#33">Source</a><a href="#associatedtype.Color-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Color" class="associatedtype">Color</a> = <a class="struct" href="../luma/struct.Luma.html" title="struct cosmic::cosmic_theme::palette::luma::Luma">Luma</a><S, T></h4></section><section id="associatedtype.WithAlpha-2" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/luma/luma.rs.html#33">Source</a><a href="#associatedtype.WithAlpha-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.WithAlpha" class="associatedtype">WithAlpha</a> = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><<a class="struct" href="../luma/struct.Luma.html" title="struct cosmic::cosmic_theme::palette::luma::Luma">Luma</a><S, T>, _A></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithAlpha%3C_A%3E-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#171">Source</a><a href="#impl-WithAlpha%3C_A%3E-for-Rgb%3CS,+T%3E" class="anchor">§</a><h3 class="code-header">impl<S, T, _A> <a class="trait" href="../trait.WithAlpha.html" title="trait cosmic::cosmic_theme::palette::WithAlpha">WithAlpha</a><_A> for <a class="struct" href="../rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a><S, T><div class="where">where
|
||||
_A: <a class="trait" href="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Color-3" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/rgb/rgb.rs.html#171">Source</a><a href="#associatedtype.Color-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Color" class="associatedtype">Color</a> = <a class="struct" href="../rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a><S, T></h4></section><section id="associatedtype.WithAlpha-3" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/rgb/rgb.rs.html#171">Source</a><a href="#associatedtype.WithAlpha-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.WithAlpha" class="associatedtype">WithAlpha</a> = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><<a class="struct" href="../rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a><S, T>, _A></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithAlpha%3C_A%3E-for-Hsl%3CS,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/hsl.rs.html#46">Source</a><a href="#impl-WithAlpha%3C_A%3E-for-Hsl%3CS,+T%3E" class="anchor">§</a><h3 class="code-header">impl<S, T, _A> <a class="trait" href="../trait.WithAlpha.html" title="trait cosmic::cosmic_theme::palette::WithAlpha">WithAlpha</a><_A> for <a class="struct" href="../struct.Hsl.html" title="struct cosmic::cosmic_theme::palette::Hsl">Hsl</a><S, T><div class="where">where
|
||||
_A: <a class="trait" href="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Color-4" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/hsl.rs.html#46">Source</a><a href="#associatedtype.Color-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Color" class="associatedtype">Color</a> = <a class="struct" href="../struct.Hsl.html" title="struct cosmic::cosmic_theme::palette::Hsl">Hsl</a><S, T></h4></section><section id="associatedtype.WithAlpha-4" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/hsl.rs.html#46">Source</a><a href="#associatedtype.WithAlpha-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.WithAlpha" class="associatedtype">WithAlpha</a> = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><<a class="struct" href="../struct.Hsl.html" title="struct cosmic::cosmic_theme::palette::Hsl">Hsl</a><S, T>, _A></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithAlpha%3C_A%3E-for-Hsv%3CS,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/hsv.rs.html#43">Source</a><a href="#impl-WithAlpha%3C_A%3E-for-Hsv%3CS,+T%3E" class="anchor">§</a><h3 class="code-header">impl<S, T, _A> <a class="trait" href="../trait.WithAlpha.html" title="trait cosmic::cosmic_theme::palette::WithAlpha">WithAlpha</a><_A> for <a class="struct" href="../struct.Hsv.html" title="struct cosmic::cosmic_theme::palette::Hsv">Hsv</a><S, T><div class="where">where
|
||||
_A: <a class="trait" href="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Color-5" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/hsv.rs.html#43">Source</a><a href="#associatedtype.Color-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Color" class="associatedtype">Color</a> = <a class="struct" href="../struct.Hsv.html" title="struct cosmic::cosmic_theme::palette::Hsv">Hsv</a><S, T></h4></section><section id="associatedtype.WithAlpha-5" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/hsv.rs.html#43">Source</a><a href="#associatedtype.WithAlpha-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.WithAlpha" class="associatedtype">WithAlpha</a> = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><<a class="struct" href="../struct.Hsv.html" title="struct cosmic::cosmic_theme::palette::Hsv">Hsv</a><S, T>, _A></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithAlpha%3C_A%3E-for-Hwb%3CS,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/hwb.rs.html#47">Source</a><a href="#impl-WithAlpha%3C_A%3E-for-Hwb%3CS,+T%3E" class="anchor">§</a><h3 class="code-header">impl<S, T, _A> <a class="trait" href="../trait.WithAlpha.html" title="trait cosmic::cosmic_theme::palette::WithAlpha">WithAlpha</a><_A> for <a class="struct" href="../struct.Hwb.html" title="struct cosmic::cosmic_theme::palette::Hwb">Hwb</a><S, T><div class="where">where
|
||||
_A: <a class="trait" href="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Color-6" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/hwb.rs.html#47">Source</a><a href="#associatedtype.Color-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Color" class="associatedtype">Color</a> = <a class="struct" href="../struct.Hwb.html" title="struct cosmic::cosmic_theme::palette::Hwb">Hwb</a><S, T></h4></section><section id="associatedtype.WithAlpha-6" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/hwb.rs.html#47">Source</a><a href="#associatedtype.WithAlpha-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.WithAlpha" class="associatedtype">WithAlpha</a> = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><<a class="struct" href="../struct.Hwb.html" title="struct cosmic::cosmic_theme::palette::Hwb">Hwb</a><S, T>, _A></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithAlpha%3C_A%3E-for-Cam16%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/full.rs.html#85">Source</a><a href="#impl-WithAlpha%3C_A%3E-for-Cam16%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T, _A> <a class="trait" href="../trait.WithAlpha.html" title="trait cosmic::cosmic_theme::palette::WithAlpha">WithAlpha</a><_A> for <a class="struct" href="../cam16/struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T><div class="where">where
|
||||
_A: <a class="trait" href="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Color-7" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/full.rs.html#85">Source</a><a href="#associatedtype.Color-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Color" class="associatedtype">Color</a> = <a class="struct" href="../cam16/struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T></h4></section><section id="associatedtype.WithAlpha-7" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/full.rs.html#85">Source</a><a href="#associatedtype.WithAlpha-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.WithAlpha" class="associatedtype">WithAlpha</a> = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><<a class="struct" href="../cam16/struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T>, _A></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithAlpha%3C_A%3E-for-Cam16Jch%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#554-567">Source</a><a href="#impl-WithAlpha%3C_A%3E-for-Cam16Jch%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T, _A> <a class="trait" href="../trait.WithAlpha.html" title="trait cosmic::cosmic_theme::palette::WithAlpha">WithAlpha</a><_A> for <a class="struct" href="../cam16/struct.Cam16Jch.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jch">Cam16Jch</a><T><div class="where">where
|
||||
_A: <a class="trait" href="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Color-8" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#554-567">Source</a><a href="#associatedtype.Color-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Color" class="associatedtype">Color</a> = <a class="struct" href="../cam16/struct.Cam16Jch.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jch">Cam16Jch</a><T></h4></section><section id="associatedtype.WithAlpha-8" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#554-567">Source</a><a href="#associatedtype.WithAlpha-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.WithAlpha" class="associatedtype">WithAlpha</a> = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><<a class="struct" href="../cam16/struct.Cam16Jch.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jch">Cam16Jch</a><T>, _A></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithAlpha%3C_A%3E-for-Cam16Jmh%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#573-598">Source</a><a href="#impl-WithAlpha%3C_A%3E-for-Cam16Jmh%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T, _A> <a class="trait" href="../trait.WithAlpha.html" title="trait cosmic::cosmic_theme::palette::WithAlpha">WithAlpha</a><_A> for <a class="struct" href="../cam16/struct.Cam16Jmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jmh">Cam16Jmh</a><T><div class="where">where
|
||||
_A: <a class="trait" href="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Color-9" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#573-598">Source</a><a href="#associatedtype.Color-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Color" class="associatedtype">Color</a> = <a class="struct" href="../cam16/struct.Cam16Jmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jmh">Cam16Jmh</a><T></h4></section><section id="associatedtype.WithAlpha-9" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#573-598">Source</a><a href="#associatedtype.WithAlpha-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.WithAlpha" class="associatedtype">WithAlpha</a> = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><<a class="struct" href="../cam16/struct.Cam16Jmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jmh">Cam16Jmh</a><T>, _A></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithAlpha%3C_A%3E-for-Cam16Jsh%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#604-618">Source</a><a href="#impl-WithAlpha%3C_A%3E-for-Cam16Jsh%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T, _A> <a class="trait" href="../trait.WithAlpha.html" title="trait cosmic::cosmic_theme::palette::WithAlpha">WithAlpha</a><_A> for <a class="struct" href="../cam16/struct.Cam16Jsh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jsh">Cam16Jsh</a><T><div class="where">where
|
||||
_A: <a class="trait" href="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Color-10" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#604-618">Source</a><a href="#associatedtype.Color-10" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Color" class="associatedtype">Color</a> = <a class="struct" href="../cam16/struct.Cam16Jsh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jsh">Cam16Jsh</a><T></h4></section><section id="associatedtype.WithAlpha-10" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#604-618">Source</a><a href="#associatedtype.WithAlpha-10" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.WithAlpha" class="associatedtype">WithAlpha</a> = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><<a class="struct" href="../cam16/struct.Cam16Jsh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jsh">Cam16Jsh</a><T>, _A></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithAlpha%3C_A%3E-for-Cam16Qch%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#624-637">Source</a><a href="#impl-WithAlpha%3C_A%3E-for-Cam16Qch%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T, _A> <a class="trait" href="../trait.WithAlpha.html" title="trait cosmic::cosmic_theme::palette::WithAlpha">WithAlpha</a><_A> for <a class="struct" href="../cam16/struct.Cam16Qch.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qch">Cam16Qch</a><T><div class="where">where
|
||||
_A: <a class="trait" href="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Color-11" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#624-637">Source</a><a href="#associatedtype.Color-11" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Color" class="associatedtype">Color</a> = <a class="struct" href="../cam16/struct.Cam16Qch.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qch">Cam16Qch</a><T></h4></section><section id="associatedtype.WithAlpha-11" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#624-637">Source</a><a href="#associatedtype.WithAlpha-11" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.WithAlpha" class="associatedtype">WithAlpha</a> = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><<a class="struct" href="../cam16/struct.Cam16Qch.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qch">Cam16Qch</a><T>, _A></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithAlpha%3C_A%3E-for-Cam16Qmh%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#643-657">Source</a><a href="#impl-WithAlpha%3C_A%3E-for-Cam16Qmh%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T, _A> <a class="trait" href="../trait.WithAlpha.html" title="trait cosmic::cosmic_theme::palette::WithAlpha">WithAlpha</a><_A> for <a class="struct" href="../cam16/struct.Cam16Qmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qmh">Cam16Qmh</a><T><div class="where">where
|
||||
_A: <a class="trait" href="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Color-12" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#643-657">Source</a><a href="#associatedtype.Color-12" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Color" class="associatedtype">Color</a> = <a class="struct" href="../cam16/struct.Cam16Qmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qmh">Cam16Qmh</a><T></h4></section><section id="associatedtype.WithAlpha-12" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#643-657">Source</a><a href="#associatedtype.WithAlpha-12" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.WithAlpha" class="associatedtype">WithAlpha</a> = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><<a class="struct" href="../cam16/struct.Cam16Qmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qmh">Cam16Qmh</a><T>, _A></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithAlpha%3C_A%3E-for-Cam16Qsh%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#663-677">Source</a><a href="#impl-WithAlpha%3C_A%3E-for-Cam16Qsh%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T, _A> <a class="trait" href="../trait.WithAlpha.html" title="trait cosmic::cosmic_theme::palette::WithAlpha">WithAlpha</a><_A> for <a class="struct" href="../cam16/struct.Cam16Qsh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qsh">Cam16Qsh</a><T><div class="where">where
|
||||
_A: <a class="trait" href="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Color-13" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#663-677">Source</a><a href="#associatedtype.Color-13" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Color" class="associatedtype">Color</a> = <a class="struct" href="../cam16/struct.Cam16Qsh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qsh">Cam16Qsh</a><T></h4></section><section id="associatedtype.WithAlpha-13" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#663-677">Source</a><a href="#associatedtype.WithAlpha-13" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.WithAlpha" class="associatedtype">WithAlpha</a> = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><<a class="struct" href="../cam16/struct.Cam16Qsh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qsh">Cam16Qsh</a><T>, _A></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithAlpha%3C_A%3E-for-Cam16UcsJab%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/ucs_jab.rs.html#50">Source</a><a href="#impl-WithAlpha%3C_A%3E-for-Cam16UcsJab%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T, _A> <a class="trait" href="../trait.WithAlpha.html" title="trait cosmic::cosmic_theme::palette::WithAlpha">WithAlpha</a><_A> for <a class="struct" href="../cam16/struct.Cam16UcsJab.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16UcsJab">Cam16UcsJab</a><T><div class="where">where
|
||||
_A: <a class="trait" href="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Color-14" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/ucs_jab.rs.html#50">Source</a><a href="#associatedtype.Color-14" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Color" class="associatedtype">Color</a> = <a class="struct" href="../cam16/struct.Cam16UcsJab.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16UcsJab">Cam16UcsJab</a><T></h4></section><section id="associatedtype.WithAlpha-14" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/ucs_jab.rs.html#50">Source</a><a href="#associatedtype.WithAlpha-14" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.WithAlpha" class="associatedtype">WithAlpha</a> = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><<a class="struct" href="../cam16/struct.Cam16UcsJab.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16UcsJab">Cam16UcsJab</a><T>, _A></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithAlpha%3C_A%3E-for-Cam16UcsJmh%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/ucs_jmh.rs.html#49">Source</a><a href="#impl-WithAlpha%3C_A%3E-for-Cam16UcsJmh%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T, _A> <a class="trait" href="../trait.WithAlpha.html" title="trait cosmic::cosmic_theme::palette::WithAlpha">WithAlpha</a><_A> for <a class="struct" href="../cam16/struct.Cam16UcsJmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16UcsJmh">Cam16UcsJmh</a><T><div class="where">where
|
||||
_A: <a class="trait" href="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Color-15" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/ucs_jmh.rs.html#49">Source</a><a href="#associatedtype.Color-15" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Color" class="associatedtype">Color</a> = <a class="struct" href="../cam16/struct.Cam16UcsJmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16UcsJmh">Cam16UcsJmh</a><T></h4></section><section id="associatedtype.WithAlpha-15" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/ucs_jmh.rs.html#49">Source</a><a href="#associatedtype.WithAlpha-15" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.WithAlpha" class="associatedtype">WithAlpha</a> = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><<a class="struct" href="../cam16/struct.Cam16UcsJmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16UcsJmh">Cam16UcsJmh</a><T>, _A></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithAlpha%3C_A%3E-for-Okhsl%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/okhsl.rs.html#35">Source</a><a href="#impl-WithAlpha%3C_A%3E-for-Okhsl%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T, _A> <a class="trait" href="../trait.WithAlpha.html" title="trait cosmic::cosmic_theme::palette::WithAlpha">WithAlpha</a><_A> for <a class="struct" href="../struct.Okhsl.html" title="struct cosmic::cosmic_theme::palette::Okhsl">Okhsl</a><T><div class="where">where
|
||||
_A: <a class="trait" href="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Color-16" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/okhsl.rs.html#35">Source</a><a href="#associatedtype.Color-16" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Color" class="associatedtype">Color</a> = <a class="struct" href="../struct.Okhsl.html" title="struct cosmic::cosmic_theme::palette::Okhsl">Okhsl</a><T></h4></section><section id="associatedtype.WithAlpha-16" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/okhsl.rs.html#35">Source</a><a href="#associatedtype.WithAlpha-16" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.WithAlpha" class="associatedtype">WithAlpha</a> = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><<a class="struct" href="../struct.Okhsl.html" title="struct cosmic::cosmic_theme::palette::Okhsl">Okhsl</a><T>, _A></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithAlpha%3C_A%3E-for-Okhsv%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/okhsv.rs.html#38">Source</a><a href="#impl-WithAlpha%3C_A%3E-for-Okhsv%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T, _A> <a class="trait" href="../trait.WithAlpha.html" title="trait cosmic::cosmic_theme::palette::WithAlpha">WithAlpha</a><_A> for <a class="struct" href="../struct.Okhsv.html" title="struct cosmic::cosmic_theme::palette::Okhsv">Okhsv</a><T><div class="where">where
|
||||
_A: <a class="trait" href="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Color-17" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/okhsv.rs.html#38">Source</a><a href="#associatedtype.Color-17" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Color" class="associatedtype">Color</a> = <a class="struct" href="../struct.Okhsv.html" title="struct cosmic::cosmic_theme::palette::Okhsv">Okhsv</a><T></h4></section><section id="associatedtype.WithAlpha-17" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/okhsv.rs.html#38">Source</a><a href="#associatedtype.WithAlpha-17" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.WithAlpha" class="associatedtype">WithAlpha</a> = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><<a class="struct" href="../struct.Okhsv.html" title="struct cosmic::cosmic_theme::palette::Okhsv">Okhsv</a><T>, _A></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithAlpha%3C_A%3E-for-Okhwb%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/okhwb.rs.html#31">Source</a><a href="#impl-WithAlpha%3C_A%3E-for-Okhwb%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T, _A> <a class="trait" href="../trait.WithAlpha.html" title="trait cosmic::cosmic_theme::palette::WithAlpha">WithAlpha</a><_A> for <a class="struct" href="../struct.Okhwb.html" title="struct cosmic::cosmic_theme::palette::Okhwb">Okhwb</a><T><div class="where">where
|
||||
_A: <a class="trait" href="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Color-18" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/okhwb.rs.html#31">Source</a><a href="#associatedtype.Color-18" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Color" class="associatedtype">Color</a> = <a class="struct" href="../struct.Okhwb.html" title="struct cosmic::cosmic_theme::palette::Okhwb">Okhwb</a><T></h4></section><section id="associatedtype.WithAlpha-18" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/okhwb.rs.html#31">Source</a><a href="#associatedtype.WithAlpha-18" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.WithAlpha" class="associatedtype">WithAlpha</a> = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><<a class="struct" href="../struct.Okhwb.html" title="struct cosmic::cosmic_theme::palette::Okhwb">Okhwb</a><T>, _A></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithAlpha%3C_A%3E-for-Oklab%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/oklab.rs.html#175">Source</a><a href="#impl-WithAlpha%3C_A%3E-for-Oklab%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T, _A> <a class="trait" href="../trait.WithAlpha.html" title="trait cosmic::cosmic_theme::palette::WithAlpha">WithAlpha</a><_A> for <a class="struct" href="../struct.Oklab.html" title="struct cosmic::cosmic_theme::palette::Oklab">Oklab</a><T><div class="where">where
|
||||
_A: <a class="trait" href="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Color-19" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/oklab.rs.html#175">Source</a><a href="#associatedtype.Color-19" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Color" class="associatedtype">Color</a> = <a class="struct" href="../struct.Oklab.html" title="struct cosmic::cosmic_theme::palette::Oklab">Oklab</a><T></h4></section><section id="associatedtype.WithAlpha-19" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/oklab.rs.html#175">Source</a><a href="#associatedtype.WithAlpha-19" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.WithAlpha" class="associatedtype">WithAlpha</a> = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><<a class="struct" href="../struct.Oklab.html" title="struct cosmic::cosmic_theme::palette::Oklab">Oklab</a><T>, _A></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithAlpha%3C_A%3E-for-Oklch%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/oklch.rs.html#33">Source</a><a href="#impl-WithAlpha%3C_A%3E-for-Oklch%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T, _A> <a class="trait" href="../trait.WithAlpha.html" title="trait cosmic::cosmic_theme::palette::WithAlpha">WithAlpha</a><_A> for <a class="struct" href="../struct.Oklch.html" title="struct cosmic::cosmic_theme::palette::Oklch">Oklch</a><T><div class="where">where
|
||||
_A: <a class="trait" href="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Color-20" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/oklch.rs.html#33">Source</a><a href="#associatedtype.Color-20" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Color" class="associatedtype">Color</a> = <a class="struct" href="../struct.Oklch.html" title="struct cosmic::cosmic_theme::palette::Oklch">Oklch</a><T></h4></section><section id="associatedtype.WithAlpha-20" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/oklch.rs.html#33">Source</a><a href="#associatedtype.WithAlpha-20" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.WithAlpha" class="associatedtype">WithAlpha</a> = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><<a class="struct" href="../struct.Oklch.html" title="struct cosmic::cosmic_theme::palette::Oklch">Oklch</a><T>, _A></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithAlpha%3C_A%3E-for-Hsluv%3CWp,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/hsluv.rs.html#29">Source</a><a href="#impl-WithAlpha%3C_A%3E-for-Hsluv%3CWp,+T%3E" class="anchor">§</a><h3 class="code-header">impl<Wp, T, _A> <a class="trait" href="../trait.WithAlpha.html" title="trait cosmic::cosmic_theme::palette::WithAlpha">WithAlpha</a><_A> for <a class="struct" href="../struct.Hsluv.html" title="struct cosmic::cosmic_theme::palette::Hsluv">Hsluv</a><Wp, T><div class="where">where
|
||||
_A: <a class="trait" href="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Color-21" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/hsluv.rs.html#29">Source</a><a href="#associatedtype.Color-21" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Color" class="associatedtype">Color</a> = <a class="struct" href="../struct.Hsluv.html" title="struct cosmic::cosmic_theme::palette::Hsluv">Hsluv</a><Wp, T></h4></section><section id="associatedtype.WithAlpha-21" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/hsluv.rs.html#29">Source</a><a href="#associatedtype.WithAlpha-21" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.WithAlpha" class="associatedtype">WithAlpha</a> = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><<a class="struct" href="../struct.Hsluv.html" title="struct cosmic::cosmic_theme::palette::Hsluv">Hsluv</a><Wp, T>, _A></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithAlpha%3C_A%3E-for-Lab%3CWp,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/lab.rs.html#45">Source</a><a href="#impl-WithAlpha%3C_A%3E-for-Lab%3CWp,+T%3E" class="anchor">§</a><h3 class="code-header">impl<Wp, T, _A> <a class="trait" href="../trait.WithAlpha.html" title="trait cosmic::cosmic_theme::palette::WithAlpha">WithAlpha</a><_A> for <a class="struct" href="../struct.Lab.html" title="struct cosmic::cosmic_theme::palette::Lab">Lab</a><Wp, T><div class="where">where
|
||||
_A: <a class="trait" href="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Color-22" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/lab.rs.html#45">Source</a><a href="#associatedtype.Color-22" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Color" class="associatedtype">Color</a> = <a class="struct" href="../struct.Lab.html" title="struct cosmic::cosmic_theme::palette::Lab">Lab</a><Wp, T></h4></section><section id="associatedtype.WithAlpha-22" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/lab.rs.html#45">Source</a><a href="#associatedtype.WithAlpha-22" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.WithAlpha" class="associatedtype">WithAlpha</a> = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><<a class="struct" href="../struct.Lab.html" title="struct cosmic::cosmic_theme::palette::Lab">Lab</a><Wp, T>, _A></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithAlpha%3C_A%3E-for-Lch%3CWp,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/lch.rs.html#29">Source</a><a href="#impl-WithAlpha%3C_A%3E-for-Lch%3CWp,+T%3E" class="anchor">§</a><h3 class="code-header">impl<Wp, T, _A> <a class="trait" href="../trait.WithAlpha.html" title="trait cosmic::cosmic_theme::palette::WithAlpha">WithAlpha</a><_A> for <a class="struct" href="../struct.Lch.html" title="struct cosmic::cosmic_theme::palette::Lch">Lch</a><Wp, T><div class="where">where
|
||||
_A: <a class="trait" href="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Color-23" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/lch.rs.html#29">Source</a><a href="#associatedtype.Color-23" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Color" class="associatedtype">Color</a> = <a class="struct" href="../struct.Lch.html" title="struct cosmic::cosmic_theme::palette::Lch">Lch</a><Wp, T></h4></section><section id="associatedtype.WithAlpha-23" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/lch.rs.html#29">Source</a><a href="#associatedtype.WithAlpha-23" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.WithAlpha" class="associatedtype">WithAlpha</a> = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><<a class="struct" href="../struct.Lch.html" title="struct cosmic::cosmic_theme::palette::Lch">Lch</a><Wp, T>, _A></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithAlpha%3C_A%3E-for-Lchuv%3CWp,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/lchuv.rs.html#26">Source</a><a href="#impl-WithAlpha%3C_A%3E-for-Lchuv%3CWp,+T%3E" class="anchor">§</a><h3 class="code-header">impl<Wp, T, _A> <a class="trait" href="../trait.WithAlpha.html" title="trait cosmic::cosmic_theme::palette::WithAlpha">WithAlpha</a><_A> for <a class="struct" href="../struct.Lchuv.html" title="struct cosmic::cosmic_theme::palette::Lchuv">Lchuv</a><Wp, T><div class="where">where
|
||||
_A: <a class="trait" href="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Color-24" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/lchuv.rs.html#26">Source</a><a href="#associatedtype.Color-24" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Color" class="associatedtype">Color</a> = <a class="struct" href="../struct.Lchuv.html" title="struct cosmic::cosmic_theme::palette::Lchuv">Lchuv</a><Wp, T></h4></section><section id="associatedtype.WithAlpha-24" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/lchuv.rs.html#26">Source</a><a href="#associatedtype.WithAlpha-24" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.WithAlpha" class="associatedtype">WithAlpha</a> = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><<a class="struct" href="../struct.Lchuv.html" title="struct cosmic::cosmic_theme::palette::Lchuv">Lchuv</a><Wp, T>, _A></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithAlpha%3C_A%3E-for-Luv%3CWp,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/luv.rs.html#31">Source</a><a href="#impl-WithAlpha%3C_A%3E-for-Luv%3CWp,+T%3E" class="anchor">§</a><h3 class="code-header">impl<Wp, T, _A> <a class="trait" href="../trait.WithAlpha.html" title="trait cosmic::cosmic_theme::palette::WithAlpha">WithAlpha</a><_A> for <a class="struct" href="../struct.Luv.html" title="struct cosmic::cosmic_theme::palette::Luv">Luv</a><Wp, T><div class="where">where
|
||||
_A: <a class="trait" href="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Color-25" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/luv.rs.html#31">Source</a><a href="#associatedtype.Color-25" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Color" class="associatedtype">Color</a> = <a class="struct" href="../struct.Luv.html" title="struct cosmic::cosmic_theme::palette::Luv">Luv</a><Wp, T></h4></section><section id="associatedtype.WithAlpha-25" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/luv.rs.html#31">Source</a><a href="#associatedtype.WithAlpha-25" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.WithAlpha" class="associatedtype">WithAlpha</a> = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><<a class="struct" href="../struct.Luv.html" title="struct cosmic::cosmic_theme::palette::Luv">Luv</a><Wp, T>, _A></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithAlpha%3C_A%3E-for-Xyz%3CWp,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/xyz.rs.html#40">Source</a><a href="#impl-WithAlpha%3C_A%3E-for-Xyz%3CWp,+T%3E" class="anchor">§</a><h3 class="code-header">impl<Wp, T, _A> <a class="trait" href="../trait.WithAlpha.html" title="trait cosmic::cosmic_theme::palette::WithAlpha">WithAlpha</a><_A> for <a class="struct" href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a><Wp, T><div class="where">where
|
||||
_A: <a class="trait" href="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Color-26" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/xyz.rs.html#40">Source</a><a href="#associatedtype.Color-26" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Color" class="associatedtype">Color</a> = <a class="struct" href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a><Wp, T></h4></section><section id="associatedtype.WithAlpha-26" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/xyz.rs.html#40">Source</a><a href="#associatedtype.WithAlpha-26" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.WithAlpha" class="associatedtype">WithAlpha</a> = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><<a class="struct" href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a><Wp, T>, _A></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithAlpha%3C_A%3E-for-Yxy%3CWp,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/yxy.rs.html#26">Source</a><a href="#impl-WithAlpha%3C_A%3E-for-Yxy%3CWp,+T%3E" class="anchor">§</a><h3 class="code-header">impl<Wp, T, _A> <a class="trait" href="../trait.WithAlpha.html" title="trait cosmic::cosmic_theme::palette::WithAlpha">WithAlpha</a><_A> for <a class="struct" href="../struct.Yxy.html" title="struct cosmic::cosmic_theme::palette::Yxy">Yxy</a><Wp, T><div class="where">where
|
||||
_A: <a class="trait" href="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Color-27" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/yxy.rs.html#26">Source</a><a href="#associatedtype.Color-27" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Color" class="associatedtype">Color</a> = <a class="struct" href="../struct.Yxy.html" title="struct cosmic::cosmic_theme::palette::Yxy">Yxy</a><Wp, T></h4></section><section id="associatedtype.WithAlpha-27" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/yxy.rs.html#26">Source</a><a href="#associatedtype.WithAlpha-27" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.WithAlpha" class="associatedtype">WithAlpha</a> = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><<a class="struct" href="../struct.Yxy.html" title="struct cosmic::cosmic_theme::palette::Yxy">Yxy</a><Wp, T>, _A></h4></section></div></details></div><script src="../../../../trait.impl/palette/alpha/trait.WithAlpha.js" data-ignore-extern-crates="palette" async></script></section></div></main></body></html>
|
||||
4
cosmic/cosmic_theme/palette/angle/index.html
Normal file
4
cosmic/cosmic_theme/palette/angle/index.html
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<!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="Traits for working with angular values, such as for in hues."><title>cosmic::cosmic_theme::palette::angle - 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 angle</a></h2><h3><a href="#traits">Module Items</a></h3><ul class="block"><li><a href="#traits" title="Traits">Traits</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>angle</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#344">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Traits for working with angular values, such as for in hues.</p>
|
||||
</div></details><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.AngleEq.html" title="trait cosmic::cosmic_theme::palette::angle::AngleEq">AngleEq</a></dt><dd>Angular equality, where 0 degrees and 360 degrees are equal.</dd><dt><a class="trait" href="trait.FromAngle.html" title="trait cosmic::cosmic_theme::palette::angle::FromAngle">From<wbr>Angle</a></dt><dd>Performs value-to-value conversion between angle types. See also <a href="trait.IntoAngle.html" title="trait cosmic::cosmic_theme::palette::angle::IntoAngle"><code>IntoAngle</code></a>.</dd><dt><a class="trait" href="trait.FullRotation.html" title="trait cosmic::cosmic_theme::palette::angle::FullRotation">Full<wbr>Rotation</a></dt><dd>Represents types that can express a full rotation (i.e. 360 degrees).</dd><dt><a class="trait" href="trait.HalfRotation.html" title="trait cosmic::cosmic_theme::palette::angle::HalfRotation">Half<wbr>Rotation</a></dt><dd>Represents types that can express half of a rotation (i.e. 180 degrees).</dd><dt><a class="trait" href="trait.IntoAngle.html" title="trait cosmic::cosmic_theme::palette::angle::IntoAngle">Into<wbr>Angle</a></dt><dd>Performs value-to-value conversion between angle types. See also <a href="trait.IntoAngle.html" title="trait cosmic::cosmic_theme::palette::angle::IntoAngle"><code>IntoAngle</code></a>.</dd><dt><a class="trait" href="trait.RealAngle.html" title="trait cosmic::cosmic_theme::palette::angle::RealAngle">Real<wbr>Angle</a></dt><dd>Angle values that are real numbers and can represent both radians and
|
||||
degrees.</dd><dt><a class="trait" href="trait.SignedAngle.html" title="trait cosmic::cosmic_theme::palette::angle::SignedAngle">Signed<wbr>Angle</a></dt><dd>Angle types that can represent the full circle using positive and negative
|
||||
values.</dd><dt><a class="trait" href="trait.UnsignedAngle.html" title="trait cosmic::cosmic_theme::palette::angle::UnsignedAngle">Unsigned<wbr>Angle</a></dt><dd>Angle types that can represent the full circle as positive values.</dd></dl></section></div></main></body></html>
|
||||
1
cosmic/cosmic_theme/palette/angle/sidebar-items.js
Normal file
1
cosmic/cosmic_theme/palette/angle/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"trait":["AngleEq","FromAngle","FullRotation","HalfRotation","IntoAngle","RealAngle","SignedAngle","UnsignedAngle"]};
|
||||
6
cosmic/cosmic_theme/palette/angle/trait.AngleEq.html
Normal file
6
cosmic/cosmic_theme/palette/angle/trait.AngleEq.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<!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="Angular equality, where 0 degrees and 360 degrees are equal."><title>AngleEq in cosmic::cosmic_theme::palette::angle - 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="#">AngleEq</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.angle_eq" title="angle_eq">angle_eq</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-AngleEq-for-f32" title="f32">f32</a></li><li><a href="#impl-AngleEq-for-f64" title="f64">f64</a></li><li><a href="#impl-AngleEq-for-u8" title="u8">u8</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::<wbr>angle</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">angle</a></div><h1>Trait <span class="trait">AngleEq</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/angle.rs.html#38">Source</a> </span></div><pre class="rust item-decl"><code>pub trait AngleEq: <a class="trait" href="../bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a> {
|
||||
// Required method
|
||||
fn <a href="#tymethod.angle_eq" class="fn">angle_eq</a>(&self, other: &Self) -> Self::<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><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Angular equality, where 0 degrees and 360 degrees are equal.</p>
|
||||
</div></details><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.angle_eq" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#41">Source</a><h4 class="code-header">fn <a href="#tymethod.angle_eq" class="fn">angle_eq</a>(&self, other: &Self) -> Self::<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></summary><div class="docblock"><p>Check if <code>self</code> and <code>other</code> represent the same angle on a circle.</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="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-AngleEq-for-f32" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#179">Source</a><a href="#impl-AngleEq-for-f32" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.AngleEq.html" title="trait cosmic::cosmic_theme::palette::angle::AngleEq">AngleEq</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></h3></section></summary><div class="impl-items"><section id="method.angle_eq" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#179">Source</a><a href="#method.angle_eq" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.angle_eq" class="fn">angle_eq</a>(&self, other: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-AngleEq-for-f64" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#179">Source</a><a href="#impl-AngleEq-for-f64" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.AngleEq.html" title="trait cosmic::cosmic_theme::palette::angle::AngleEq">AngleEq</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></h3></section></summary><div class="impl-items"><section id="method.angle_eq-1" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#179">Source</a><a href="#method.angle_eq-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.angle_eq" class="fn">angle_eq</a>(&self, other: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-AngleEq-for-u8" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#191">Source</a><a href="#impl-AngleEq-for-u8" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.AngleEq.html" title="trait cosmic::cosmic_theme::palette::angle::AngleEq">AngleEq</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a></h3></section></summary><div class="impl-items"><section id="method.angle_eq-2" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#193">Source</a><a href="#method.angle_eq-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.angle_eq" class="fn">angle_eq</a>(&self, other: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../../../trait.impl/palette/angle/trait.AngleEq.js" data-ignore-extern-crates="std" async></script></section></div></main></body></html>
|
||||
6
cosmic/cosmic_theme/palette/angle/trait.FromAngle.html
Normal file
6
cosmic/cosmic_theme/palette/angle/trait.FromAngle.html
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,6 @@
|
|||
<!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="Represents types that can express a full rotation (i.e. 360 degrees)."><title>FullRotation in cosmic::cosmic_theme::palette::angle - 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="#">Full<wbr>Rotation</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.full_rotation" title="full_rotation">full_rotation</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-FullRotation-for-f32" title="f32">f32</a></li><li><a href="#impl-FullRotation-for-f64" title="f64">f64</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::<wbr>angle</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">angle</a></div><h1>Trait <span class="trait">FullRotation</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/angle.rs.html#19">Source</a> </span></div><pre class="rust item-decl"><code>pub trait FullRotation {
|
||||
// Required method
|
||||
fn <a href="#tymethod.full_rotation" class="fn">full_rotation</a>() -> Self;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Represents types that can express a full rotation (i.e. 360 degrees).</p>
|
||||
</div></details><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.full_rotation" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#22">Source</a><h4 class="code-header">fn <a href="#tymethod.full_rotation" class="fn">full_rotation</a>() -> Self</h4></section></summary><div class="docblock"><p>Return a value that represents a full rotation (i.e. 360 degrees).</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="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-FullRotation-for-f32" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#179">Source</a><a href="#impl-FullRotation-for-f32" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.FullRotation.html" title="trait cosmic::cosmic_theme::palette::angle::FullRotation">FullRotation</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></h3></section></summary><div class="impl-items"><section id="method.full_rotation" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#179">Source</a><a href="#method.full_rotation" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.full_rotation" class="fn">full_rotation</a>() -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FullRotation-for-f64" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#179">Source</a><a href="#impl-FullRotation-for-f64" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.FullRotation.html" title="trait cosmic::cosmic_theme::palette::angle::FullRotation">FullRotation</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></h3></section></summary><div class="impl-items"><section id="method.full_rotation-1" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#179">Source</a><a href="#method.full_rotation-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.full_rotation" class="fn">full_rotation</a>() -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../../../trait.impl/palette/angle/trait.FullRotation.js" data-ignore-extern-crates="std" async></script></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
<!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="Represents types that can express half of a rotation (i.e. 180 degrees)."><title>HalfRotation in cosmic::cosmic_theme::palette::angle - 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="#">Half<wbr>Rotation</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.half_rotation" title="half_rotation">half_rotation</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-HalfRotation-for-f32" title="f32">f32</a></li><li><a href="#impl-HalfRotation-for-f64" title="f64">f64</a></li><li><a href="#impl-HalfRotation-for-u8" title="u8">u8</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::<wbr>angle</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">angle</a></div><h1>Trait <span class="trait">HalfRotation</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/angle.rs.html#12">Source</a> </span></div><pre class="rust item-decl"><code>pub trait HalfRotation {
|
||||
// Required method
|
||||
fn <a href="#tymethod.half_rotation" class="fn">half_rotation</a>() -> Self;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Represents types that can express half of a rotation (i.e. 180 degrees).</p>
|
||||
</div></details><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.half_rotation" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#15">Source</a><h4 class="code-header">fn <a href="#tymethod.half_rotation" class="fn">half_rotation</a>() -> Self</h4></section></summary><div class="docblock"><p>Return a value that represents half of a rotation (i.e. 180 degrees).</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="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-HalfRotation-for-f32" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#179">Source</a><a href="#impl-HalfRotation-for-f32" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HalfRotation.html" title="trait cosmic::cosmic_theme::palette::angle::HalfRotation">HalfRotation</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></h3></section></summary><div class="impl-items"><section id="method.half_rotation" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#179">Source</a><a href="#method.half_rotation" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.half_rotation" class="fn">half_rotation</a>() -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-HalfRotation-for-f64" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#179">Source</a><a href="#impl-HalfRotation-for-f64" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HalfRotation.html" title="trait cosmic::cosmic_theme::palette::angle::HalfRotation">HalfRotation</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></h3></section></summary><div class="impl-items"><section id="method.half_rotation-1" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#179">Source</a><a href="#method.half_rotation-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.half_rotation" class="fn">half_rotation</a>() -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-HalfRotation-for-u8" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#184">Source</a><a href="#impl-HalfRotation-for-u8" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.HalfRotation.html" title="trait cosmic::cosmic_theme::palette::angle::HalfRotation">HalfRotation</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a></h3></section></summary><div class="impl-items"><section id="method.half_rotation-2" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#186">Source</a><a href="#method.half_rotation-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.half_rotation" class="fn">half_rotation</a>() -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../../../trait.impl/palette/angle/trait.HalfRotation.js" data-ignore-extern-crates="std" async></script></section></div></main></body></html>
|
||||
7
cosmic/cosmic_theme/palette/angle/trait.IntoAngle.html
Normal file
7
cosmic/cosmic_theme/palette/angle/trait.IntoAngle.html
Normal 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="Performs value-to-value conversion between angle types. See also `IntoAngle`."><title>IntoAngle in cosmic::cosmic_theme::palette::angle - 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="#">Into<wbr>Angle</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.into_angle" title="into_angle">into_angle</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>angle</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">angle</a></div><h1>Trait <span class="trait">IntoAngle</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/angle.rs.html#73">Source</a> </span></div><pre class="rust item-decl"><code>pub trait IntoAngle<T> {
|
||||
// Required method
|
||||
fn <a href="#tymethod.into_angle" class="fn">into_angle</a>(self) -> T;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Performs value-to-value conversion between angle types. See also <a href="trait.IntoAngle.html" title="trait cosmic::cosmic_theme::palette::angle::IntoAngle"><code>IntoAngle</code></a>.</p>
|
||||
</div></details><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_angle" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#75">Source</a><h4 class="code-header">fn <a href="#tymethod.into_angle" class="fn">into_angle</a>(self) -> T</h4></section></summary><div class="docblock"><p>Performs a conversion into <code>T</code>.</p>
|
||||
</div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-IntoAngle%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#78-80">Source</a><a href="#impl-IntoAngle%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="trait.IntoAngle.html" title="trait cosmic::cosmic_theme::palette::angle::IntoAngle">IntoAngle</a><U> for T<div class="where">where
|
||||
U: <a class="trait" href="trait.FromAngle.html" title="trait cosmic::cosmic_theme::palette::angle::FromAngle">FromAngle</a><T>,</div></h3></section></div><script src="../../../../trait.impl/palette/angle/trait.IntoAngle.js" async></script></section></div></main></body></html>
|
||||
9
cosmic/cosmic_theme/palette/angle/trait.RealAngle.html
Normal file
9
cosmic/cosmic_theme/palette/angle/trait.RealAngle.html
Normal 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="Angle values that are real numbers and can represent both radians and degrees."><title>RealAngle in cosmic::cosmic_theme::palette::angle - 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="#">Real<wbr>Angle</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.degrees_to_radians" title="degrees_to_radians">degrees_to_radians</a></li><li><a href="#tymethod.radians_to_degrees" title="radians_to_degrees">radians_to_degrees</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-RealAngle-for-f32" title="f32">f32</a></li><li><a href="#impl-RealAngle-for-f64" title="f64">f64</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::<wbr>angle</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">angle</a></div><h1>Trait <span class="trait">RealAngle</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/angle.rs.html#27">Source</a> </span></div><pre class="rust item-decl"><code>pub trait RealAngle: <a class="trait" href="../num/trait.Real.html" title="trait cosmic::cosmic_theme::palette::num::Real">Real</a> {
|
||||
// Required methods
|
||||
fn <a href="#tymethod.radians_to_degrees" class="fn">radians_to_degrees</a>(self) -> Self;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.degrees_to_radians" class="fn">degrees_to_radians</a>(self) -> Self;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Angle values that are real numbers and can represent both radians and
|
||||
degrees.</p>
|
||||
</div></details><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.radians_to_degrees" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#30">Source</a><h4 class="code-header">fn <a href="#tymethod.radians_to_degrees" class="fn">radians_to_degrees</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Consider <code>self</code> to be radians and convert it to degrees.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.degrees_to_radians" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#34">Source</a><h4 class="code-header">fn <a href="#tymethod.degrees_to_radians" class="fn">degrees_to_radians</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Consider <code>self</code> to be degrees and convert it to radians.</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="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-RealAngle-for-f32" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#179">Source</a><a href="#impl-RealAngle-for-f32" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.RealAngle.html" title="trait cosmic::cosmic_theme::palette::angle::RealAngle">RealAngle</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></h3></section></summary><div class="impl-items"><section id="method.degrees_to_radians" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#179">Source</a><a href="#method.degrees_to_radians" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.degrees_to_radians" class="fn">degrees_to_radians</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></h4></section><section id="method.radians_to_degrees" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#179">Source</a><a href="#method.radians_to_degrees" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.radians_to_degrees" class="fn">radians_to_degrees</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-RealAngle-for-f64" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#179">Source</a><a href="#impl-RealAngle-for-f64" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.RealAngle.html" title="trait cosmic::cosmic_theme::palette::angle::RealAngle">RealAngle</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></h3></section></summary><div class="impl-items"><section id="method.degrees_to_radians-1" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#179">Source</a><a href="#method.degrees_to_radians-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.degrees_to_radians" class="fn">degrees_to_radians</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></h4></section><section id="method.radians_to_degrees-1" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#179">Source</a><a href="#method.radians_to_degrees-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.radians_to_degrees" class="fn">radians_to_degrees</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../../../trait.impl/palette/angle/trait.RealAngle.js" data-ignore-extern-crates="std" async></script></section></div></main></body></html>
|
||||
7
cosmic/cosmic_theme/palette/angle/trait.SignedAngle.html
Normal file
7
cosmic/cosmic_theme/palette/angle/trait.SignedAngle.html
Normal 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="Angle types that can represent the full circle using positive and negative values."><title>SignedAngle in cosmic::cosmic_theme::palette::angle - 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="#">Signed<wbr>Angle</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.normalize_signed_angle" title="normalize_signed_angle">normalize_signed_angle</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-SignedAngle-for-f32" title="f32">f32</a></li><li><a href="#impl-SignedAngle-for-f64" title="f64">f64</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::<wbr>angle</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">angle</a></div><h1>Trait <span class="trait">SignedAngle</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/angle.rs.html#46">Source</a> </span></div><pre class="rust item-decl"><code>pub trait SignedAngle {
|
||||
// Required method
|
||||
fn <a href="#tymethod.normalize_signed_angle" class="fn">normalize_signed_angle</a>(self) -> Self;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Angle types that can represent the full circle using positive and negative
|
||||
values.</p>
|
||||
</div></details><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.normalize_signed_angle" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#49">Source</a><h4 class="code-header">fn <a href="#tymethod.normalize_signed_angle" class="fn">normalize_signed_angle</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Normalize <code>self</code> to a range corresponding to -180 to 180 degrees.</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="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-SignedAngle-for-f32" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#179">Source</a><a href="#impl-SignedAngle-for-f32" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.SignedAngle.html" title="trait cosmic::cosmic_theme::palette::angle::SignedAngle">SignedAngle</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></h3></section></summary><div class="impl-items"><section id="method.normalize_signed_angle" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#179">Source</a><a href="#method.normalize_signed_angle" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.normalize_signed_angle" class="fn">normalize_signed_angle</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-SignedAngle-for-f64" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#179">Source</a><a href="#impl-SignedAngle-for-f64" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.SignedAngle.html" title="trait cosmic::cosmic_theme::palette::angle::SignedAngle">SignedAngle</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></h3></section></summary><div class="impl-items"><section id="method.normalize_signed_angle-1" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#179">Source</a><a href="#method.normalize_signed_angle-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.normalize_signed_angle" class="fn">normalize_signed_angle</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../../../trait.impl/palette/angle/trait.SignedAngle.js" data-ignore-extern-crates="std" async></script></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
<!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="Angle types that can represent the full circle as positive values."><title>UnsignedAngle in cosmic::cosmic_theme::palette::angle - 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="#">Unsigned<wbr>Angle</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.normalize_unsigned_angle" title="normalize_unsigned_angle">normalize_unsigned_angle</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-UnsignedAngle-for-f32" title="f32">f32</a></li><li><a href="#impl-UnsignedAngle-for-f64" title="f64">f64</a></li><li><a href="#impl-UnsignedAngle-for-u8" title="u8">u8</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::<wbr>angle</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">angle</a></div><h1>Trait <span class="trait">UnsignedAngle</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/angle.rs.html#53">Source</a> </span></div><pre class="rust item-decl"><code>pub trait UnsignedAngle {
|
||||
// Required method
|
||||
fn <a href="#tymethod.normalize_unsigned_angle" class="fn">normalize_unsigned_angle</a>(self) -> Self;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Angle types that can represent the full circle as positive values.</p>
|
||||
</div></details><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.normalize_unsigned_angle" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#56">Source</a><h4 class="code-header">fn <a href="#tymethod.normalize_unsigned_angle" class="fn">normalize_unsigned_angle</a>(self) -> Self</h4></section></summary><div class="docblock"><p>Normalize <code>self</code> to a range corresponding to 0 to 360 degrees.</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="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-UnsignedAngle-for-f32" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#179">Source</a><a href="#impl-UnsignedAngle-for-f32" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.UnsignedAngle.html" title="trait cosmic::cosmic_theme::palette::angle::UnsignedAngle">UnsignedAngle</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></h3></section></summary><div class="impl-items"><section id="method.normalize_unsigned_angle" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#179">Source</a><a href="#method.normalize_unsigned_angle" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.normalize_unsigned_angle" class="fn">normalize_unsigned_angle</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-UnsignedAngle-for-f64" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#179">Source</a><a href="#impl-UnsignedAngle-for-f64" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.UnsignedAngle.html" title="trait cosmic::cosmic_theme::palette::angle::UnsignedAngle">UnsignedAngle</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></h3></section></summary><div class="impl-items"><section id="method.normalize_unsigned_angle-1" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#179">Source</a><a href="#method.normalize_unsigned_angle-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.normalize_unsigned_angle" class="fn">normalize_unsigned_angle</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-UnsignedAngle-for-u8" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#198">Source</a><a href="#impl-UnsignedAngle-for-u8" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.UnsignedAngle.html" title="trait cosmic::cosmic_theme::palette::angle::UnsignedAngle">UnsignedAngle</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a></h3></section></summary><div class="impl-items"><section id="method.normalize_unsigned_angle-2" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/angle.rs.html#200">Source</a><a href="#method.normalize_unsigned_angle-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.normalize_unsigned_angle" class="fn">normalize_unsigned_angle</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../../../trait.impl/palette/angle/trait.UnsignedAngle.js" data-ignore-extern-crates="std" async></script></section></div></main></body></html>
|
||||
91
cosmic/cosmic_theme/palette/blend/enum.Equation.html
Normal file
91
cosmic/cosmic_theme/palette/blend/enum.Equation.html
Normal file
File diff suppressed because one or more lines are too long
97
cosmic/cosmic_theme/palette/blend/enum.Parameter.html
Normal file
97
cosmic/cosmic_theme/palette/blend/enum.Parameter.html
Normal file
File diff suppressed because one or more lines are too long
30
cosmic/cosmic_theme/palette/blend/index.html
Normal file
30
cosmic/cosmic_theme/palette/blend/index.html
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<!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="Color blending and blending equations."><title>cosmic::cosmic_theme::palette::blend - 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 blend</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#traits" title="Traits">Traits</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>blend</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#345">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Color blending and blending equations.</p>
|
||||
<p>Palette offers both OpenGL style blending equations, as well as most of the
|
||||
SVG composition operators (also common in photo manipulation software). The
|
||||
composition operators are all implemented in the <a href="trait.Compose.html" title="trait cosmic::cosmic_theme::palette::blend::Compose"><code>Compose</code></a> and <a href="trait.Blend.html" title="trait cosmic::cosmic_theme::palette::blend::Blend"><code>Blend</code></a>
|
||||
traits, and ready to use with any appropriate color type:</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>palette::{blend::Blend, LinSrgba};
|
||||
|
||||
<span class="kw">let </span>a = LinSrgba::new(<span class="number">0.2</span>, <span class="number">0.5</span>, <span class="number">0.1</span>, <span class="number">0.8</span>);
|
||||
<span class="kw">let </span>b = LinSrgba::new(<span class="number">0.6</span>, <span class="number">0.3</span>, <span class="number">0.5</span>, <span class="number">0.1</span>);
|
||||
<span class="kw">let </span>c = a.overlay(b);</code></pre></div>
|
||||
<p>Blending equations can be defined using the <a href="struct.Equations.html" title="struct cosmic::cosmic_theme::palette::blend::Equations"><code>Equations</code></a> type, which is
|
||||
then passed to the <code>blend</code> function, from the <code>Blend</code> trait:</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>palette::LinSrgba;
|
||||
<span class="kw">use </span>palette::blend::{BlendWith, Equations, Parameter};
|
||||
|
||||
<span class="kw">let </span>blend_mode = Equations::from_parameters(
|
||||
Parameter::SourceAlpha,
|
||||
Parameter::OneMinusSourceAlpha
|
||||
);
|
||||
|
||||
<span class="kw">let </span>a = LinSrgba::new(<span class="number">0.2</span>, <span class="number">0.5</span>, <span class="number">0.1</span>, <span class="number">0.8</span>);
|
||||
<span class="kw">let </span>b = LinSrgba::new(<span class="number">0.6</span>, <span class="number">0.3</span>, <span class="number">0.5</span>, <span class="number">0.1</span>);
|
||||
<span class="kw">let </span>c = a.blend_with(b, blend_mode);</code></pre></div>
|
||||
<p>Note that blending will use <a href="../alpha/struct.PreAlpha.html" title="struct cosmic::cosmic_theme::palette::alpha::PreAlpha">premultiplied alpha</a>,
|
||||
which may result in loss of some color information in some cases. One such
|
||||
case is that a completely transparent resultant color will become black.</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.Equations.html" title="struct cosmic::cosmic_theme::palette::blend::Equations">Equations</a></dt><dd>A pair of blending equations and corresponding parameters.</dd><dt><a class="struct" href="struct.Parameters.html" title="struct cosmic::cosmic_theme::palette::blend::Parameters">Parameters</a></dt><dd>A pair of source and destination parameters.</dd><dt><a class="struct" href="struct.PreAlpha.html" title="struct cosmic::cosmic_theme::palette::blend::PreAlpha">PreAlpha</a></dt><dd>Premultiplied alpha wrapper.</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.Equation.html" title="enum cosmic::cosmic_theme::palette::blend::Equation">Equation</a></dt><dd>A blending equation.</dd><dt><a class="enum" href="enum.Parameter.html" title="enum cosmic::cosmic_theme::palette::blend::Parameter">Parameter</a></dt><dd>A blending parameter.</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.Blend.html" title="trait cosmic::cosmic_theme::palette::blend::Blend">Blend</a></dt><dd>A trait for different ways of mixing colors together.</dd><dt><a class="trait" href="trait.BlendFunction.html" title="trait cosmic::cosmic_theme::palette::blend::BlendFunction">Blend<wbr>Function</a></dt><dd>A trait for custom blend functions.</dd><dt><a class="trait" href="trait.BlendWith.html" title="trait cosmic::cosmic_theme::palette::blend::BlendWith">Blend<wbr>With</a></dt><dd>Blending with a custom blend function.</dd><dt><a class="trait" href="trait.Compose.html" title="trait cosmic::cosmic_theme::palette::blend::Compose">Compose</a></dt><dd>The Porter Duff composition operators, <a href="https://www.w3.org/TR/compositing-1/#porterduffcompositingoperators">as described by
|
||||
W3C</a>.</dd><dt><a class="trait" href="trait.Premultiply.html" title="trait cosmic::cosmic_theme::palette::blend::Premultiply">Premultiply</a></dt><dd>Alpha masking and unmasking.</dd></dl></section></div></main></body></html>
|
||||
1
cosmic/cosmic_theme/palette/blend/sidebar-items.js
Normal file
1
cosmic/cosmic_theme/palette/blend/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"enum":["Equation","Parameter"],"struct":["Equations","Parameters","PreAlpha"],"trait":["Blend","BlendFunction","BlendWith","Compose","Premultiply"]};
|
||||
96
cosmic/cosmic_theme/palette/blend/struct.Equations.html
Normal file
96
cosmic/cosmic_theme/palette/blend/struct.Equations.html
Normal file
File diff suppressed because one or more lines are too long
81
cosmic/cosmic_theme/palette/blend/struct.Parameters.html
Normal file
81
cosmic/cosmic_theme/palette/blend/struct.Parameters.html
Normal file
File diff suppressed because one or more lines are too long
343
cosmic/cosmic_theme/palette/blend/struct.PreAlpha.html
Normal file
343
cosmic/cosmic_theme/palette/blend/struct.PreAlpha.html
Normal file
File diff suppressed because one or more lines are too long
51
cosmic/cosmic_theme/palette/blend/trait.Blend.html
Normal file
51
cosmic/cosmic_theme/palette/blend/trait.Blend.html
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
<!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 different ways of mixing colors together."><title>Blend in cosmic::cosmic_theme::palette::blend - 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="#">Blend</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.burn" title="burn">burn</a></li><li><a href="#tymethod.darken" title="darken">darken</a></li><li><a href="#tymethod.difference" title="difference">difference</a></li><li><a href="#tymethod.dodge" title="dodge">dodge</a></li><li><a href="#tymethod.exclusion" title="exclusion">exclusion</a></li><li><a href="#tymethod.hard_light" title="hard_light">hard_light</a></li><li><a href="#tymethod.lighten" title="lighten">lighten</a></li><li><a href="#tymethod.multiply" title="multiply">multiply</a></li><li><a href="#tymethod.overlay" title="overlay">overlay</a></li><li><a href="#tymethod.screen" title="screen">screen</a></li><li><a href="#tymethod.soft_light" title="soft_light">soft_light</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::<wbr>blend</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">blend</a></div><h1>Trait <span class="trait">Blend</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/blend/blend.rs.html#19">Source</a> </span></div><pre class="rust item-decl"><code>pub trait Blend {
|
||||
// Required methods
|
||||
fn <a href="#tymethod.multiply" class="fn">multiply</a>(self, other: Self) -> Self;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.screen" class="fn">screen</a>(self, other: Self) -> Self;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.overlay" class="fn">overlay</a>(self, other: Self) -> Self;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.darken" class="fn">darken</a>(self, other: Self) -> Self;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.lighten" class="fn">lighten</a>(self, other: Self) -> Self;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.dodge" class="fn">dodge</a>(self, other: Self) -> Self;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.burn" class="fn">burn</a>(self, other: Self) -> Self;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.hard_light" class="fn">hard_light</a>(self, other: Self) -> Self;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.soft_light" class="fn">soft_light</a>(self, other: Self) -> Self;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.difference" class="fn">difference</a>(self, other: Self) -> Self;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.exclusion" class="fn">exclusion</a>(self, other: Self) -> Self;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A trait for different ways of mixing colors together.</p>
|
||||
<p>This implements the classic separable blend modes, <a href="https://www.w3.org/TR/compositing-1/#blending">as described by
|
||||
W3C</a>.</p>
|
||||
<p><em>Note: The default implementations of the blend modes are meant for color
|
||||
components in the range [0.0, 1.0] and may otherwise produce strange
|
||||
results.</em></p>
|
||||
</div></details><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.multiply" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend/blend.rs.html#23">Source</a><h4 class="code-header">fn <a href="#tymethod.multiply" class="fn">multiply</a>(self, other: Self) -> Self</h4></section></summary><div class="docblock"><p>Multiply <code>self</code> with <code>other</code>. This uses the alpha component to regulate
|
||||
the effect, so it’s not just plain component wise multiplication.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.screen" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend/blend.rs.html#27">Source</a><h4 class="code-header">fn <a href="#tymethod.screen" class="fn">screen</a>(self, other: Self) -> Self</h4></section></summary><div class="docblock"><p>Make a color which is at least as light as <code>self</code> or <code>other</code>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.overlay" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend/blend.rs.html#32">Source</a><h4 class="code-header">fn <a href="#tymethod.overlay" class="fn">overlay</a>(self, other: Self) -> Self</h4></section></summary><div class="docblock"><p>Multiply <code>self</code> or <code>other</code> if other is dark, or screen them if <code>other</code>
|
||||
is light. This results in an S curve.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.darken" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend/blend.rs.html#36">Source</a><h4 class="code-header">fn <a href="#tymethod.darken" class="fn">darken</a>(self, other: Self) -> Self</h4></section></summary><div class="docblock"><p>Return the darkest parts of <code>self</code> and <code>other</code>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.lighten" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend/blend.rs.html#40">Source</a><h4 class="code-header">fn <a href="#tymethod.lighten" class="fn">lighten</a>(self, other: Self) -> Self</h4></section></summary><div class="docblock"><p>Return the lightest parts of <code>self</code> and <code>other</code>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.dodge" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend/blend.rs.html#45">Source</a><h4 class="code-header">fn <a href="#tymethod.dodge" class="fn">dodge</a>(self, other: Self) -> Self</h4></section></summary><div class="docblock"><p>Lighten <code>other</code> to reflect <code>self</code>. Results in <code>other</code> if <code>self</code> is
|
||||
black.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.burn" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend/blend.rs.html#50">Source</a><h4 class="code-header">fn <a href="#tymethod.burn" class="fn">burn</a>(self, other: Self) -> Self</h4></section></summary><div class="docblock"><p>Darken <code>other</code> to reflect <code>self</code>. Results in <code>other</code> if <code>self</code> is
|
||||
white.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.hard_light" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend/blend.rs.html#56">Source</a><h4 class="code-header">fn <a href="#tymethod.hard_light" class="fn">hard_light</a>(self, other: Self) -> Self</h4></section></summary><div class="docblock"><p>Multiply <code>self</code> or <code>other</code> if other is dark, or screen them if <code>self</code>
|
||||
is light. This is similar to <code>overlay</code>, but depends on <code>self</code> instead
|
||||
of <code>other</code>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.soft_light" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend/blend.rs.html#62">Source</a><h4 class="code-header">fn <a href="#tymethod.soft_light" class="fn">soft_light</a>(self, other: Self) -> Self</h4></section></summary><div class="docblock"><p>Lighten <code>other</code> if <code>self</code> is light, or darken <code>other</code> as if it’s burned
|
||||
if <code>self</code> is dark. The effect is increased if the components of <code>self</code>
|
||||
is further from 0.5.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.difference" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend/blend.rs.html#67">Source</a><h4 class="code-header">fn <a href="#tymethod.difference" class="fn">difference</a>(self, other: Self) -> Self</h4></section></summary><div class="docblock"><p>Return the absolute difference between <code>self</code> and <code>other</code>. It’s
|
||||
basically <code>abs(self - other)</code>, but regulated by the alpha component.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.exclusion" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend/blend.rs.html#73">Source</a><h4 class="code-header">fn <a href="#tymethod.exclusion" class="fn">exclusion</a>(self, other: Self) -> Self</h4></section></summary><div class="docblock"><p>Similar to <code>difference</code>, but appears to result in a lower contrast.
|
||||
<code>other</code> is inverted if <code>self</code> is white, and preserved if <code>self</code> is
|
||||
black.</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"><section id="impl-Blend-for-PreAlpha%3CC%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend/blend.rs.html#76-80">Source</a><a href="#impl-Blend-for-PreAlpha%3CC%3E" class="anchor">§</a><h3 class="code-header">impl<C, T, const N: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>> <a class="trait" href="trait.Blend.html" title="trait cosmic::cosmic_theme::palette::blend::Blend">Blend</a> for <a class="struct" href="../alpha/struct.PreAlpha.html" title="struct cosmic::cosmic_theme::palette::alpha::PreAlpha">PreAlpha</a><C><div class="where">where
|
||||
C: <a class="trait" href="trait.Premultiply.html" title="trait cosmic::cosmic_theme::palette::blend::Premultiply">Premultiply</a><Scalar = T> + <a class="trait" href="../stimulus/trait.StimulusColor.html" title="trait cosmic::cosmic_theme::palette::stimulus::StimulusColor">StimulusColor</a> + <a class="trait" href="../cast/trait.ArrayCast.html" title="trait cosmic::cosmic_theme::palette::cast::ArrayCast">ArrayCast</a><Array = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[T; N]</a>> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
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.Zero.html" title="trait cosmic::cosmic_theme::palette::num::Zero">Zero</a> + <a class="trait" href="../num/trait.One.html" title="trait cosmic::cosmic_theme::palette::num::One">One</a> + <a class="trait" href="../num/trait.MinMax.html" title="trait cosmic::cosmic_theme::palette::num::MinMax">MinMax</a> + <a class="trait" href="../num/trait.Clamp.html" title="trait cosmic::cosmic_theme::palette::num::Clamp">Clamp</a> + <a class="trait" href="../num/trait.Sqrt.html" title="trait cosmic::cosmic_theme::palette::num::Sqrt">Sqrt</a> + <a class="trait" href="../num/trait.Abs.html" title="trait cosmic::cosmic_theme::palette::num::Abs">Abs</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> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>>::<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><T>,</div></h3></section><section id="impl-Blend-for-Alpha%3CC,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend/blend.rs.html#229-233">Source</a><a href="#impl-Blend-for-Alpha%3CC,+T%3E" class="anchor">§</a><h3 class="code-header">impl<C, T, const N: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>> <a class="trait" href="trait.Blend.html" title="trait cosmic::cosmic_theme::palette::blend::Blend">Blend</a> for <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><C, T><div class="where">where
|
||||
C: <a class="trait" href="trait.Premultiply.html" title="trait cosmic::cosmic_theme::palette::blend::Premultiply">Premultiply</a><Scalar = T> + <a class="trait" href="../stimulus/trait.StimulusColor.html" title="trait cosmic::cosmic_theme::palette::stimulus::StimulusColor">StimulusColor</a> + <a class="trait" href="../cast/trait.ArrayCast.html" title="trait cosmic::cosmic_theme::palette::cast::ArrayCast">ArrayCast</a><Array = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[T; N]</a>> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
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.Zero.html" title="trait cosmic::cosmic_theme::palette::num::Zero">Zero</a> + <a class="trait" href="../num/trait.One.html" title="trait cosmic::cosmic_theme::palette::num::One">One</a> + <a class="trait" href="../num/trait.MinMax.html" title="trait cosmic::cosmic_theme::palette::num::MinMax">MinMax</a> + <a class="trait" href="../num/trait.Clamp.html" title="trait cosmic::cosmic_theme::palette::num::Clamp">Clamp</a> + <a class="trait" href="../num/trait.Sqrt.html" title="trait cosmic::cosmic_theme::palette::num::Sqrt">Sqrt</a> + <a class="trait" href="../num/trait.Abs.html" title="trait cosmic::cosmic_theme::palette::num::Abs">Abs</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> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>>::<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><T>,</div></h3></section><section id="impl-Blend-for-C" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend/blend.rs.html#138-142">Source</a><a href="#impl-Blend-for-C" class="anchor">§</a><h3 class="code-header">impl<C, T, const N: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>> <a class="trait" href="trait.Blend.html" title="trait cosmic::cosmic_theme::palette::blend::Blend">Blend</a> for C<div class="where">where
|
||||
C: <a class="trait" href="trait.Premultiply.html" title="trait cosmic::cosmic_theme::palette::blend::Premultiply">Premultiply</a><Scalar = T> + <a class="trait" href="../stimulus/trait.StimulusColor.html" title="trait cosmic::cosmic_theme::palette::stimulus::StimulusColor">StimulusColor</a> + <a class="trait" href="../cast/trait.ArrayCast.html" title="trait cosmic::cosmic_theme::palette::cast::ArrayCast">ArrayCast</a><Array = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[T; N]</a>> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
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.Zero.html" title="trait cosmic::cosmic_theme::palette::num::Zero">Zero</a> + <a class="trait" href="../num/trait.One.html" title="trait cosmic::cosmic_theme::palette::num::One">One</a> + <a class="trait" href="../num/trait.MinMax.html" title="trait cosmic::cosmic_theme::palette::num::MinMax">MinMax</a> + <a class="trait" href="../num/trait.Clamp.html" title="trait cosmic::cosmic_theme::palette::num::Clamp">Clamp</a> + <a class="trait" href="../num/trait.Sqrt.html" title="trait cosmic::cosmic_theme::palette::num::Sqrt">Sqrt</a> + <a class="trait" href="../num/trait.Abs.html" title="trait cosmic::cosmic_theme::palette::num::Abs">Abs</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> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>>::<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><T>,</div></h3></section></div><script src="../../../../trait.impl/palette/blend/blend/trait.Blend.js" data-ignore-extern-crates="palette" async></script></section></div></main></body></html>
|
||||
16
cosmic/cosmic_theme/palette/blend/trait.BlendFunction.html
Normal file
16
cosmic/cosmic_theme/palette/blend/trait.BlendFunction.html
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<!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 custom blend functions."><title>BlendFunction in cosmic::cosmic_theme::palette::blend - 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="#">Blend<wbr>Function</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.apply_to" title="apply_to">apply_to</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>blend</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">blend</a></div><h1>Trait <span class="trait">BlendFunction</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/blend.rs.html#63">Source</a> </span></div><pre class="rust item-decl"><code>pub trait BlendFunction<C><div class="where">where
|
||||
C: <a class="trait" href="trait.Premultiply.html" title="trait cosmic::cosmic_theme::palette::blend::Premultiply">Premultiply</a>,</div>{
|
||||
// Required method
|
||||
fn <a href="#tymethod.apply_to" class="fn">apply_to</a>(
|
||||
self,
|
||||
source: <a class="struct" href="../alpha/struct.PreAlpha.html" title="struct cosmic::cosmic_theme::palette::alpha::PreAlpha">PreAlpha</a><C>,
|
||||
destination: <a class="struct" href="../alpha/struct.PreAlpha.html" title="struct cosmic::cosmic_theme::palette::alpha::PreAlpha">PreAlpha</a><C>,
|
||||
) -> <a class="struct" href="../alpha/struct.PreAlpha.html" title="struct cosmic::cosmic_theme::palette::alpha::PreAlpha">PreAlpha</a><C>;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A trait for custom blend functions.</p>
|
||||
</div></details><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.apply_to" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend.rs.html#69">Source</a><h4 class="code-header">fn <a href="#tymethod.apply_to" class="fn">apply_to</a>(self, source: <a class="struct" href="../alpha/struct.PreAlpha.html" title="struct cosmic::cosmic_theme::palette::alpha::PreAlpha">PreAlpha</a><C>, destination: <a class="struct" href="../alpha/struct.PreAlpha.html" title="struct cosmic::cosmic_theme::palette::alpha::PreAlpha">PreAlpha</a><C>) -> <a class="struct" href="../alpha/struct.PreAlpha.html" title="struct cosmic::cosmic_theme::palette::alpha::PreAlpha">PreAlpha</a><C></h4></section></summary><div class="docblock"><p>Apply this blend function to a pair of colors.</p>
|
||||
</div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-BlendFunction%3CC%3E-for-F" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend.rs.html#72-75">Source</a><a href="#impl-BlendFunction%3CC%3E-for-F" class="anchor">§</a><h3 class="code-header">impl<C, F> <a class="trait" href="trait.BlendFunction.html" title="trait cosmic::cosmic_theme::palette::blend::BlendFunction">BlendFunction</a><C> for F<div class="where">where
|
||||
C: <a class="trait" href="trait.Premultiply.html" title="trait cosmic::cosmic_theme::palette::blend::Premultiply">Premultiply</a>,
|
||||
F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="struct" href="../alpha/struct.PreAlpha.html" title="struct cosmic::cosmic_theme::palette::alpha::PreAlpha">PreAlpha</a><C>, <a class="struct" href="../alpha/struct.PreAlpha.html" title="struct cosmic::cosmic_theme::palette::alpha::PreAlpha">PreAlpha</a><C>) -> <a class="struct" href="../alpha/struct.PreAlpha.html" title="struct cosmic::cosmic_theme::palette::alpha::PreAlpha">PreAlpha</a><C>,</div></h3></section><section id="impl-BlendFunction%3CC%3E-for-Equations" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend/equations.rs.html#68-76">Source</a><a href="#impl-BlendFunction%3CC%3E-for-Equations" class="anchor">§</a><h3 class="code-header">impl<C, S, const N: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, const M: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>> <a class="trait" href="trait.BlendFunction.html" title="trait cosmic::cosmic_theme::palette::blend::BlendFunction">BlendFunction</a><C> for <a class="struct" href="struct.Equations.html" title="struct cosmic::cosmic_theme::palette::blend::Equations">Equations</a><div class="where">where
|
||||
C: <a class="trait" href="trait.Premultiply.html" title="trait cosmic::cosmic_theme::palette::blend::Premultiply">Premultiply</a><Scalar = S> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><Output = C, Output = C> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><S> + <a class="trait" href="../cast/trait.ArrayCast.html" title="trait cosmic::cosmic_theme::palette::cast::ArrayCast">ArrayCast</a><Array = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[S; N]</a>> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<a class="struct" href="../alpha/struct.PreAlpha.html" title="struct cosmic::cosmic_theme::palette::alpha::PreAlpha">PreAlpha</a><C>: <a class="trait" href="../cast/trait.ArrayCast.html" title="trait cosmic::cosmic_theme::palette::cast::ArrayCast">ArrayCast</a><Array = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[S; M]</a>>,
|
||||
S: <a class="trait" href="../num/trait.Real.html" title="trait cosmic::cosmic_theme::palette::num::Real">Real</a> + <a class="trait" href="../num/trait.One.html" title="trait cosmic::cosmic_theme::palette::num::One">One</a> + <a class="trait" href="../num/trait.Zero.html" title="trait cosmic::cosmic_theme::palette::num::Zero">Zero</a> + <a class="trait" href="../num/trait.MinMax.html" title="trait cosmic::cosmic_theme::palette::num::MinMax">MinMax</a> + <a class="trait" href="../num/trait.Sqrt.html" title="trait cosmic::cosmic_theme::palette::num::Sqrt">Sqrt</a> + <a class="trait" href="../num/trait.IsValidDivisor.html" title="trait cosmic::cosmic_theme::palette::num::IsValidDivisor">IsValidDivisor</a> + <a class="trait" href="../num/trait.Arithmetics.html" title="trait cosmic::cosmic_theme::palette::num::Arithmetics">Arithmetics</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></div><script src="../../../../trait.impl/palette/blend/trait.BlendFunction.js" data-ignore-extern-crates="palette" async></script></section></div></main></body></html>
|
||||
37
cosmic/cosmic_theme/palette/blend/trait.BlendWith.html
Normal file
37
cosmic/cosmic_theme/palette/blend/trait.BlendWith.html
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
<!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="Blending with a custom blend function."><title>BlendWith in cosmic::cosmic_theme::palette::blend - 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="#">Blend<wbr>With</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Color" title="Color">Color</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.blend_with" title="blend_with">blend_with</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::<wbr>blend</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">blend</a></div><h1>Trait <span class="trait">BlendWith</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/blend/blend_with.rs.html#11">Source</a> </span></div><pre class="rust item-decl"><code>pub trait BlendWith {
|
||||
type <a href="#associatedtype.Color" class="associatedtype">Color</a>: <a class="trait" href="trait.Premultiply.html" title="trait cosmic::cosmic_theme::palette::blend::Premultiply">Premultiply</a>;
|
||||
|
||||
// Required method
|
||||
fn <a href="#tymethod.blend_with" class="fn">blend_with</a><F>(self, destination: Self, blend_function: F) -> Self
|
||||
<span class="where">where F: <a class="trait" href="trait.BlendFunction.html" title="trait cosmic::cosmic_theme::palette::blend::BlendFunction">BlendFunction</a><Self::<a class="associatedtype" href="trait.BlendWith.html#associatedtype.Color" title="type cosmic::cosmic_theme::palette::blend::BlendWith::Color">Color</a>></span>;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Blending with a custom blend function.</p>
|
||||
<p>This is a convenience trait that makes it possible to use <a href="trait.BlendFunction.html" title="trait cosmic::cosmic_theme::palette::blend::BlendFunction"><code>BlendFunction</code></a>
|
||||
via a method on the source color. This makes custom blending more similar to
|
||||
how the <a href="trait.Compose.html" title="trait cosmic::cosmic_theme::palette::blend::Compose"><code>Compose</code></a> and <a href="trait.Blend.html" title="trait cosmic::cosmic_theme::palette::blend::Blend"><code>Blend</code></a> are used,
|
||||
including automatic pre-multiplication.</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.Color" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend/blend_with.rs.html#13">Source</a><h4 class="code-header">type <a href="#associatedtype.Color" class="associatedtype">Color</a>: <a class="trait" href="trait.Premultiply.html" title="trait cosmic::cosmic_theme::palette::blend::Premultiply">Premultiply</a></h4></section></summary><div class="docblock"><p>The base color type of <code>Self</code>.</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.blend_with" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend/blend_with.rs.html#37-39">Source</a><h4 class="code-header">fn <a href="#tymethod.blend_with" class="fn">blend_with</a><F>(self, destination: Self, blend_function: F) -> Self<div class="where">where
|
||||
F: <a class="trait" href="trait.BlendFunction.html" title="trait cosmic::cosmic_theme::palette::blend::BlendFunction">BlendFunction</a><Self::<a class="associatedtype" href="trait.BlendWith.html#associatedtype.Color" title="type cosmic::cosmic_theme::palette::blend::BlendWith::Color">Color</a>>,</div></h4></section></summary><div class="docblock"><p>Blend self, as the source color, with <code>destination</code>, using
|
||||
<code>blend_function</code>. Anything that implements <a href="trait.BlendFunction.html" title="trait cosmic::cosmic_theme::palette::blend::BlendFunction"><code>BlendFunction</code></a> is
|
||||
acceptable, including functions and closures.</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>palette::{LinSrgb, LinSrgba};
|
||||
<span class="kw">use </span>palette::blend::{BlendWith, PreAlpha};
|
||||
|
||||
<span class="kw">type </span>PreRgba = PreAlpha<LinSrgb<f32>>;
|
||||
|
||||
<span class="kw">fn </span>blend_mode(a: PreRgba, b: PreRgba) -> PreRgba {
|
||||
PreAlpha {
|
||||
color: LinSrgb::new(a.red * b.green, a.green * b.blue, a.blue * b.red),
|
||||
alpha: a.alpha * b.alpha,
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">let </span>a = LinSrgba::new(<span class="number">0.2</span>, <span class="number">0.5</span>, <span class="number">0.1</span>, <span class="number">0.8</span>);
|
||||
<span class="kw">let </span>b = LinSrgba::new(<span class="number">0.6</span>, <span class="number">0.3</span>, <span class="number">0.5</span>, <span class="number">0.1</span>);
|
||||
<span class="kw">let </span>c = a.blend_with(b, blend_mode);</code></pre></div>
|
||||
</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-BlendWith-for-PreAlpha%3CC%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend/blend_with.rs.html#42-44">Source</a><a href="#impl-BlendWith-for-PreAlpha%3CC%3E" class="anchor">§</a><h3 class="code-header">impl<C> <a class="trait" href="trait.BlendWith.html" title="trait cosmic::cosmic_theme::palette::blend::BlendWith">BlendWith</a> for <a class="struct" href="../alpha/struct.PreAlpha.html" title="struct cosmic::cosmic_theme::palette::alpha::PreAlpha">PreAlpha</a><C><div class="where">where
|
||||
C: <a class="trait" href="trait.Premultiply.html" title="trait cosmic::cosmic_theme::palette::blend::Premultiply">Premultiply</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Color-1" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend/blend_with.rs.html#46">Source</a><a href="#associatedtype.Color-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Color" class="associatedtype">Color</a> = C</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BlendWith-for-Alpha%3CC,+%3CC+as+Premultiply%3E::Scalar%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend/blend_with.rs.html#57-59">Source</a><a href="#impl-BlendWith-for-Alpha%3CC,+%3CC+as+Premultiply%3E::Scalar%3E" class="anchor">§</a><h3 class="code-header">impl<C> <a class="trait" href="trait.BlendWith.html" title="trait cosmic::cosmic_theme::palette::blend::BlendWith">BlendWith</a> for <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><C, <C as <a class="trait" href="trait.Premultiply.html" title="trait cosmic::cosmic_theme::palette::blend::Premultiply">Premultiply</a>>::<a class="associatedtype" href="trait.Premultiply.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::blend::Premultiply::Scalar">Scalar</a>><div class="where">where
|
||||
C: <a class="trait" href="trait.Premultiply.html" title="trait cosmic::cosmic_theme::palette::blend::Premultiply">Premultiply</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Color-2" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend/blend_with.rs.html#61">Source</a><a href="#associatedtype.Color-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Color" class="associatedtype">Color</a> = C</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BlendWith-for-C" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend/blend_with.rs.html#73-76">Source</a><a href="#impl-BlendWith-for-C" class="anchor">§</a><h3 class="code-header">impl<C> <a class="trait" href="trait.BlendWith.html" title="trait cosmic::cosmic_theme::palette::blend::BlendWith">BlendWith</a> for C<div class="where">where
|
||||
C: <a class="trait" href="trait.Premultiply.html" title="trait cosmic::cosmic_theme::palette::blend::Premultiply">Premultiply</a>,
|
||||
<C as <a class="trait" href="trait.Premultiply.html" title="trait cosmic::cosmic_theme::palette::blend::Premultiply">Premultiply</a>>::<a class="associatedtype" href="trait.Premultiply.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::blend::Premultiply::Scalar">Scalar</a>: <a class="trait" href="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Color-3" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend/blend_with.rs.html#78">Source</a><a href="#associatedtype.Color-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Color" class="associatedtype">Color</a> = C</h4></section></div></details></div><script src="../../../../trait.impl/palette/blend/blend_with/trait.BlendWith.js" data-ignore-extern-crates="palette" async></script></section></div></main></body></html>
|
||||
31
cosmic/cosmic_theme/palette/blend/trait.Compose.html
Normal file
31
cosmic/cosmic_theme/palette/blend/trait.Compose.html
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<!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="The Porter Duff composition operators, as described by W3C."><title>Compose in cosmic::cosmic_theme::palette::blend - 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="#">Compose</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.atop" title="atop">atop</a></li><li><a href="#tymethod.inside" title="inside">inside</a></li><li><a href="#tymethod.outside" title="outside">outside</a></li><li><a href="#tymethod.over" title="over">over</a></li><li><a href="#tymethod.plus" title="plus">plus</a></li><li><a href="#tymethod.xor" title="xor">xor</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::<wbr>blend</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">blend</a></div><h1>Trait <span class="trait">Compose</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/blend/compose.rs.html#17">Source</a> </span></div><pre class="rust item-decl"><code>pub trait Compose {
|
||||
// Required methods
|
||||
fn <a href="#tymethod.over" class="fn">over</a>(self, other: Self) -> Self;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.inside" class="fn">inside</a>(self, other: Self) -> Self;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.outside" class="fn">outside</a>(self, other: Self) -> Self;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.atop" class="fn">atop</a>(self, other: Self) -> Self;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.xor" class="fn">xor</a>(self, other: Self) -> Self;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.plus" class="fn">plus</a>(self, other: Self) -> Self;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The Porter Duff composition operators, <a href="https://www.w3.org/TR/compositing-1/#porterduffcompositingoperators">as described by
|
||||
W3C</a>.</p>
|
||||
<p>This set of operators exclude the variants where source and destination are
|
||||
swapped, as well as the “clear”, “copy” and “destination” operators. Those
|
||||
can easily be achieved using other means.</p>
|
||||
</div></details><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.over" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend/compose.rs.html#21">Source</a><h4 class="code-header">fn <a href="#tymethod.over" class="fn">over</a>(self, other: Self) -> Self</h4></section></summary><div class="docblock"><p>Place <code>self</code> over <code>other</code>. This is the good old common alpha composition
|
||||
equation.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.inside" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend/compose.rs.html#26">Source</a><h4 class="code-header">fn <a href="#tymethod.inside" class="fn">inside</a>(self, other: Self) -> Self</h4></section></summary><div class="docblock"><p>Results in the parts of <code>self</code> that overlaps the visible parts of
|
||||
<code>other</code>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.outside" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend/compose.rs.html#31">Source</a><h4 class="code-header">fn <a href="#tymethod.outside" class="fn">outside</a>(self, other: Self) -> Self</h4></section></summary><div class="docblock"><p>Results in the parts of <code>self</code> that lies outside the visible parts of
|
||||
<code>other</code>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.atop" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend/compose.rs.html#35">Source</a><h4 class="code-header">fn <a href="#tymethod.atop" class="fn">atop</a>(self, other: Self) -> Self</h4></section></summary><div class="docblock"><p>Place <code>self</code> over only the visible parts of <code>other</code>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.xor" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend/compose.rs.html#39">Source</a><h4 class="code-header">fn <a href="#tymethod.xor" class="fn">xor</a>(self, other: Self) -> Self</h4></section></summary><div class="docblock"><p>Results in either <code>self</code> or <code>other</code>, where they do not overlap.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.plus" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend/compose.rs.html#44">Source</a><h4 class="code-header">fn <a href="#tymethod.plus" class="fn">plus</a>(self, other: Self) -> Self</h4></section></summary><div class="docblock"><p>Add <code>self</code> and <code>other</code>. This uses the alpha component to regulate the
|
||||
effect, so it’s not just plain component wise addition.</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"><section id="impl-Compose-for-Alpha%3CC,+%3CC+as+Premultiply%3E::Scalar%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend/compose.rs.html#125-128">Source</a><a href="#impl-Compose-for-Alpha%3CC,+%3CC+as+Premultiply%3E::Scalar%3E" class="anchor">§</a><h3 class="code-header">impl<C> <a class="trait" href="trait.Compose.html" title="trait cosmic::cosmic_theme::palette::blend::Compose">Compose</a> for <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><C, <C as <a class="trait" href="trait.Premultiply.html" title="trait cosmic::cosmic_theme::palette::blend::Premultiply">Premultiply</a>>::<a class="associatedtype" href="trait.Premultiply.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::blend::Premultiply::Scalar">Scalar</a>><div class="where">where
|
||||
C: <a class="trait" href="trait.Premultiply.html" title="trait cosmic::cosmic_theme::palette::blend::Premultiply">Premultiply</a>,
|
||||
<a class="struct" href="../alpha/struct.PreAlpha.html" title="struct cosmic::cosmic_theme::palette::alpha::PreAlpha">PreAlpha</a><C>: <a class="trait" href="trait.Compose.html" title="trait cosmic::cosmic_theme::palette::blend::Compose">Compose</a>,</div></h3></section><section id="impl-Compose-for-C" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend/compose.rs.html#165-169">Source</a><a href="#impl-Compose-for-C" class="anchor">§</a><h3 class="code-header">impl<C> <a class="trait" href="trait.Compose.html" title="trait cosmic::cosmic_theme::palette::blend::Compose">Compose</a> for C<div class="where">where
|
||||
C: <a class="trait" href="trait.Premultiply.html" title="trait cosmic::cosmic_theme::palette::blend::Premultiply">Premultiply</a>,
|
||||
<C as <a class="trait" href="trait.Premultiply.html" title="trait cosmic::cosmic_theme::palette::blend::Premultiply">Premultiply</a>>::<a class="associatedtype" href="trait.Premultiply.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::blend::Premultiply::Scalar">Scalar</a>: <a class="trait" href="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a>,
|
||||
<a class="struct" href="../alpha/struct.PreAlpha.html" title="struct cosmic::cosmic_theme::palette::alpha::PreAlpha">PreAlpha</a><C>: <a class="trait" href="trait.Compose.html" title="trait cosmic::cosmic_theme::palette::blend::Compose">Compose</a>,</div></h3></section><section id="impl-Compose-for-PreAlpha%3CC%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend/compose.rs.html#47-50">Source</a><a href="#impl-Compose-for-PreAlpha%3CC%3E" class="anchor">§</a><h3 class="code-header">impl<C, T, const N: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>> <a class="trait" href="trait.Compose.html" title="trait cosmic::cosmic_theme::palette::blend::Compose">Compose</a> for <a class="struct" href="../alpha/struct.PreAlpha.html" title="struct cosmic::cosmic_theme::palette::alpha::PreAlpha">PreAlpha</a><C><div class="where">where
|
||||
C: <a class="trait" href="../cast/trait.ArrayCast.html" title="trait cosmic::cosmic_theme::palette::cast::ArrayCast">ArrayCast</a><Array = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[T; N]</a>> + <a class="trait" href="trait.Premultiply.html" title="trait cosmic::cosmic_theme::palette::blend::Premultiply">Premultiply</a><Scalar = T>,
|
||||
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.Zero.html" title="trait cosmic::cosmic_theme::palette::num::Zero">Zero</a> + <a class="trait" href="../num/trait.One.html" title="trait cosmic::cosmic_theme::palette::num::One">One</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.Clamp.html" title="trait cosmic::cosmic_theme::palette::num::Clamp">Clamp</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></div><script src="../../../../trait.impl/palette/blend/compose/trait.Compose.js" data-ignore-extern-crates="palette" async></script></section></div></main></body></html>
|
||||
30
cosmic/cosmic_theme/palette/blend/trait.Premultiply.html
Normal file
30
cosmic/cosmic_theme/palette/blend/trait.Premultiply.html
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<!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="Alpha masking and unmasking."><title>Premultiply in cosmic::cosmic_theme::palette::blend - 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="#">Premultiply</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.premultiply" title="premultiply">premultiply</a></li><li><a href="#tymethod.unpremultiply" title="unpremultiply">unpremultiply</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::<wbr>blend</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">blend</a></div><h1>Trait <span class="trait">Premultiply</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/blend.rs.html#84">Source</a> </span></div><pre class="rust item-decl"><code>pub trait Premultiply: <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="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a>;
|
||||
|
||||
// Required methods
|
||||
fn <a href="#tymethod.premultiply" class="fn">premultiply</a>(self, alpha: Self::<a class="associatedtype" href="trait.Premultiply.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::blend::Premultiply::Scalar">Scalar</a>) -> <a class="struct" href="../alpha/struct.PreAlpha.html" title="struct cosmic::cosmic_theme::palette::alpha::PreAlpha">PreAlpha</a><Self>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.unpremultiply" class="fn">unpremultiply</a>(premultiplied: <a class="struct" href="../alpha/struct.PreAlpha.html" title="struct cosmic::cosmic_theme::palette::alpha::PreAlpha">PreAlpha</a><Self>) -> (Self, Self::<a class="associatedtype" href="trait.Premultiply.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::blend::Premultiply::Scalar">Scalar</a>);
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Alpha masking and unmasking.</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/blend.rs.html#86">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="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a></h4></section></summary><div class="docblock"><p>The color’s component type.</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.premultiply" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend.rs.html#92">Source</a><h4 class="code-header">fn <a href="#tymethod.premultiply" class="fn">premultiply</a>(self, alpha: Self::<a class="associatedtype" href="trait.Premultiply.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::blend::Premultiply::Scalar">Scalar</a>) -> <a class="struct" href="../alpha/struct.PreAlpha.html" title="struct cosmic::cosmic_theme::palette::alpha::PreAlpha">PreAlpha</a><Self></h4></section></summary><div class="docblock"><p>Alpha mask the color.</p>
|
||||
<p>This is done by multiplying the color’s component by <code>alpha</code>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.unpremultiply" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/blend.rs.html#99">Source</a><h4 class="code-header">fn <a href="#tymethod.unpremultiply" class="fn">unpremultiply</a>(premultiplied: <a class="struct" href="../alpha/struct.PreAlpha.html" title="struct cosmic::cosmic_theme::palette::alpha::PreAlpha">PreAlpha</a><Self>) -> (Self, Self::<a class="associatedtype" href="trait.Premultiply.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::blend::Premultiply::Scalar">Scalar</a>)</h4></section></summary><div class="docblock"><p>Alpha unmask the color, resulting in a color and transparency pair.</p>
|
||||
<p>This is done by dividing the masked color’s component by <code>alpha</code>, or
|
||||
returning a black color if <code>alpha</code> is <code>0</code>.</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-Premultiply-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#576">Source</a><a href="#impl-Premultiply-for-Luma%3CS,+T%3E" class="anchor">§</a><h3 class="code-header">impl<S, T> <a class="trait" href="trait.Premultiply.html" title="trait cosmic::cosmic_theme::palette::blend::Premultiply">Premultiply</a> for <a class="struct" href="../luma/struct.Luma.html" title="struct cosmic::cosmic_theme::palette::luma::Luma">Luma</a><S, T><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="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a> + <a class="trait" href="../num/trait.Zero.html" title="trait cosmic::cosmic_theme::palette::num::Zero">Zero</a> + <a class="trait" href="../num/trait.IsValidDivisor.html" title="trait cosmic::cosmic_theme::palette::num::IsValidDivisor">IsValidDivisor</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><Output = T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a><Output = T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>>::<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><T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-1" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/luma/luma.rs.html#576">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-Premultiply-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#973">Source</a><a href="#impl-Premultiply-for-Rgb%3CS,+T%3E" class="anchor">§</a><h3 class="code-header">impl<S, T> <a class="trait" href="trait.Premultiply.html" title="trait cosmic::cosmic_theme::palette::blend::Premultiply">Premultiply</a> for <a class="struct" href="../rgb/struct.Rgb.html" title="struct cosmic::cosmic_theme::palette::rgb::Rgb">Rgb</a><S, T><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="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a> + <a class="trait" href="../num/trait.Zero.html" title="trait cosmic::cosmic_theme::palette::num::Zero">Zero</a> + <a class="trait" href="../num/trait.IsValidDivisor.html" title="trait cosmic::cosmic_theme::palette::num::IsValidDivisor">IsValidDivisor</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><Output = T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a><Output = T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>>::<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><T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-2" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/rgb/rgb.rs.html#973">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-Premultiply-for-Cam16UcsJab%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/ucs_jab.rs.html#267">Source</a><a href="#impl-Premultiply-for-Cam16UcsJab%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="trait.Premultiply.html" title="trait cosmic::cosmic_theme::palette::blend::Premultiply">Premultiply</a> for <a class="struct" href="../cam16/struct.Cam16UcsJab.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16UcsJab">Cam16UcsJab</a><T><div class="where">where
|
||||
T: <a class="trait" href="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a> + <a class="trait" href="../num/trait.Zero.html" title="trait cosmic::cosmic_theme::palette::num::Zero">Zero</a> + <a class="trait" href="../num/trait.IsValidDivisor.html" title="trait cosmic::cosmic_theme::palette::num::IsValidDivisor">IsValidDivisor</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><Output = T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a><Output = T> + <a class="trait" href="../num/trait.Real.html" title="trait cosmic::cosmic_theme::palette::num::Real">Real</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>>::<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><T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-3" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/ucs_jab.rs.html#267">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-Premultiply-for-Oklab%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/oklab/properties.rs.html#29">Source</a><a href="#impl-Premultiply-for-Oklab%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="trait.Premultiply.html" title="trait cosmic::cosmic_theme::palette::blend::Premultiply">Premultiply</a> for <a class="struct" href="../struct.Oklab.html" title="struct cosmic::cosmic_theme::palette::Oklab">Oklab</a><T><div class="where">where
|
||||
T: <a class="trait" href="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a> + <a class="trait" href="../num/trait.Zero.html" title="trait cosmic::cosmic_theme::palette::num::Zero">Zero</a> + <a class="trait" href="../num/trait.IsValidDivisor.html" title="trait cosmic::cosmic_theme::palette::num::IsValidDivisor">IsValidDivisor</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><Output = T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a><Output = T> + <a class="trait" href="../num/trait.Real.html" title="trait cosmic::cosmic_theme::palette::num::Real">Real</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>>::<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><T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-4" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/oklab/properties.rs.html#29">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-Premultiply-for-Lab%3CWp,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/lab.rs.html#231">Source</a><a href="#impl-Premultiply-for-Lab%3CWp,+T%3E" class="anchor">§</a><h3 class="code-header">impl<Wp, T> <a class="trait" href="trait.Premultiply.html" title="trait cosmic::cosmic_theme::palette::blend::Premultiply">Premultiply</a> for <a class="struct" href="../struct.Lab.html" title="struct cosmic::cosmic_theme::palette::Lab">Lab</a><Wp, T><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="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a> + <a class="trait" href="../num/trait.Zero.html" title="trait cosmic::cosmic_theme::palette::num::Zero">Zero</a> + <a class="trait" href="../num/trait.IsValidDivisor.html" title="trait cosmic::cosmic_theme::palette::num::IsValidDivisor">IsValidDivisor</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><Output = T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a><Output = T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>>::<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><T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-5" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/lab.rs.html#231">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-Premultiply-for-Luv%3CWp,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/luv.rs.html#233">Source</a><a href="#impl-Premultiply-for-Luv%3CWp,+T%3E" class="anchor">§</a><h3 class="code-header">impl<Wp, T> <a class="trait" href="trait.Premultiply.html" title="trait cosmic::cosmic_theme::palette::blend::Premultiply">Premultiply</a> for <a class="struct" href="../struct.Luv.html" title="struct cosmic::cosmic_theme::palette::Luv">Luv</a><Wp, T><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="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a> + <a class="trait" href="../num/trait.Zero.html" title="trait cosmic::cosmic_theme::palette::num::Zero">Zero</a> + <a class="trait" href="../num/trait.IsValidDivisor.html" title="trait cosmic::cosmic_theme::palette::num::IsValidDivisor">IsValidDivisor</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><Output = T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a><Output = T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>>::<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><T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-6" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/luv.rs.html#233">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-Premultiply-for-Xyz%3CWp,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/xyz.rs.html#420">Source</a><a href="#impl-Premultiply-for-Xyz%3CWp,+T%3E" class="anchor">§</a><h3 class="code-header">impl<Wp, T> <a class="trait" href="trait.Premultiply.html" title="trait cosmic::cosmic_theme::palette::blend::Premultiply">Premultiply</a> for <a class="struct" href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a><Wp, T><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="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a> + <a class="trait" href="../num/trait.Zero.html" title="trait cosmic::cosmic_theme::palette::num::Zero">Zero</a> + <a class="trait" href="../num/trait.IsValidDivisor.html" title="trait cosmic::cosmic_theme::palette::num::IsValidDivisor">IsValidDivisor</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><Output = T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a><Output = T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>>::<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><T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-7" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/xyz.rs.html#420">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-Premultiply-for-Yxy%3CWp,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/yxy.rs.html#235">Source</a><a href="#impl-Premultiply-for-Yxy%3CWp,+T%3E" class="anchor">§</a><h3 class="code-header">impl<Wp, T> <a class="trait" href="trait.Premultiply.html" title="trait cosmic::cosmic_theme::palette::blend::Premultiply">Premultiply</a> for <a class="struct" href="../struct.Yxy.html" title="struct cosmic::cosmic_theme::palette::Yxy">Yxy</a><Wp, T><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="../stimulus/trait.Stimulus.html" title="trait cosmic::cosmic_theme::palette::stimulus::Stimulus">Stimulus</a> + <a class="trait" href="../num/trait.Zero.html" title="trait cosmic::cosmic_theme::palette::num::Zero">Zero</a> + <a class="trait" href="../num/trait.IsValidDivisor.html" title="trait cosmic::cosmic_theme::palette::num::IsValidDivisor">IsValidDivisor</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><Output = T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Div.html" title="trait core::ops::arith::Div">Div</a><Output = T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>>::<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><T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-8" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/yxy.rs.html#235">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></div><script src="../../../../trait.impl/palette/blend/trait.Premultiply.js" data-ignore-extern-crates="palette" async></script></section></div></main></body></html>
|
||||
4
cosmic/cosmic_theme/palette/bool_mask/index.html
Normal file
4
cosmic/cosmic_theme/palette/bool_mask/index.html
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<!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="Traits for abstracting over Boolean types."><title>cosmic::cosmic_theme::palette::bool_mask - 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 bool_<wbr>mask</a></h2><h3><a href="#traits">Module Items</a></h3><ul class="block"><li><a href="#traits" title="Traits">Traits</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>bool_mask</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#346">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Traits for abstracting over Boolean types.</p>
|
||||
<p>These traits are mainly useful for allowing SIMD values, where bit masks are
|
||||
typically used instead of <code>bool</code>.</p>
|
||||
</div></details><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.BitOps.html" title="trait cosmic::cosmic_theme::palette::bool_mask::BitOps">BitOps</a></dt><dd>A helper trait that collects bit traits under one name.</dd><dt><a class="trait" href="trait.BoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::BoolMask">Bool<wbr>Mask</a></dt><dd>Basic methods for boolean masks.</dd><dt><a class="trait" href="trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBool<wbr>Mask</a></dt><dd>Associates a Boolean type to the implementing type.</dd><dt><a class="trait" href="trait.LazySelect.html" title="trait cosmic::cosmic_theme::palette::bool_mask::LazySelect">Lazy<wbr>Select</a></dt><dd>Like <a href="trait.Select.html" title="trait cosmic::cosmic_theme::palette::bool_mask::Select"><code>Select</code></a>, but can avoid evaluating the input.</dd><dt><a class="trait" href="trait.Select.html" title="trait cosmic::cosmic_theme::palette::bool_mask::Select">Select</a></dt><dd>Makes a mask bale to select between two values.</dd></dl></section></div></main></body></html>
|
||||
1
cosmic/cosmic_theme/palette/bool_mask/sidebar-items.js
Normal file
1
cosmic/cosmic_theme/palette/bool_mask/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"trait":["BitOps","BoolMask","HasBoolMask","LazySelect","Select"]};
|
||||
11
cosmic/cosmic_theme/palette/bool_mask/trait.BitOps.html
Normal file
11
cosmic/cosmic_theme/palette/bool_mask/trait.BitOps.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!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 helper trait that collects bit traits under one name."><title>BitOps in cosmic::cosmic_theme::palette::bool_mask - 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="#">BitOps</a></h2><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::<wbr>bool_<wbr>mask</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">bool_mask</a></div><h1>Trait <span class="trait">BitOps</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/bool_mask.rs.html#153-161">Source</a> </span></div><pre class="rust item-decl"><code>pub trait BitOps:
|
||||
<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>
|
||||
+ <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/bit/trait.BitAnd.html" title="trait core::ops::bit::BitAnd">BitAnd</a><Output = Self, Output = Self>
|
||||
+ <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/bit/trait.BitOr.html" title="trait core::ops::bit::BitOr">BitOr</a><Output = Self, Output = Self>
|
||||
+ <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/bit/trait.BitXor.html" title="trait core::ops::bit::BitXor">BitXor</a><Output = Self, Output = Self>
|
||||
+ <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/bit/trait.Not.html" title="trait core::ops::bit::Not">Not</a><Output = Self>
|
||||
+ for<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/bit/trait.BitAnd.html" title="trait core::ops::bit::BitAnd">BitAnd</a><&'a Self>
|
||||
+ for<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/bit/trait.BitOr.html" title="trait core::ops::bit::BitOr">BitOr</a><&'a Self>
|
||||
+ for<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/bit/trait.BitXor.html" title="trait core::ops::bit::BitXor">BitXor</a><&'a Self> { }</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A helper trait that collects bit traits under one name.</p>
|
||||
</div></details><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"><section id="impl-BitOps-for-T" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/bool_mask.rs.html#165-173">Source</a><a href="#impl-BitOps-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="trait.BitOps.html" title="trait cosmic::cosmic_theme::palette::bool_mask::BitOps">BitOps</a> for T<div class="where">where
|
||||
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/bit/trait.Not.html" title="trait core::ops::bit::Not">Not</a><Output = T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/bit/trait.BitOr.html" title="trait core::ops::bit::BitOr">BitOr</a><Output = T, Output = T> + for<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/bit/trait.BitAnd.html" title="trait core::ops::bit::BitAnd">BitAnd</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a T</a>, Output = T, Output = T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/bit/trait.BitAnd.html" title="trait core::ops::bit::BitAnd">BitAnd</a> + for<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/bit/trait.BitOr.html" title="trait core::ops::bit::BitOr">BitOr</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a T</a>> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/bit/trait.BitXor.html" title="trait core::ops::bit::BitXor">BitXor</a><Output = T, Output = T> + for<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/bit/trait.BitXor.html" title="trait core::ops::bit::BitXor">BitXor</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a T</a>>,</div></h3></section></div><script src="../../../../trait.impl/palette/bool_mask/trait.BitOps.js" async></script></section></div></main></body></html>
|
||||
10
cosmic/cosmic_theme/palette/bool_mask/trait.BoolMask.html
Normal file
10
cosmic/cosmic_theme/palette/bool_mask/trait.BoolMask.html
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<!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="Basic methods for boolean masks."><title>BoolMask in cosmic::cosmic_theme::palette::bool_mask - 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="#">Bool<wbr>Mask</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.from_bool" title="from_bool">from_bool</a></li><li><a href="#tymethod.is_false" title="is_false">is_false</a></li><li><a href="#tymethod.is_true" title="is_true">is_true</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-BoolMask-for-bool" title="bool">bool</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::<wbr>bool_<wbr>mask</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">bool_mask</a></div><h1>Trait <span class="trait">BoolMask</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/bool_mask.rs.html#63">Source</a> </span></div><pre class="rust item-decl"><code>pub trait BoolMask {
|
||||
// Required methods
|
||||
fn <a href="#tymethod.from_bool" class="fn">from_bool</a>(value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>) -> Self;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.is_true" class="fn">is_true</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.is_false" class="fn">is_false</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Basic methods for boolean masks.</p>
|
||||
</div></details><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.from_bool" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/bool_mask.rs.html#66">Source</a><h4 class="code-header">fn <a href="#tymethod.from_bool" class="fn">from_bool</a>(value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>) -> Self</h4></section></summary><div class="docblock"><p>Create a new mask where each lane is set to <code>value</code>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.is_true" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/bool_mask.rs.html#70">Source</a><h4 class="code-header">fn <a href="#tymethod.is_true" class="fn">is_true</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Checks if all lanes in the mask are <code>true</code>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.is_false" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/bool_mask.rs.html#74">Source</a><h4 class="code-header">fn <a href="#tymethod.is_false" class="fn">is_false</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Checks if all lanes in the mask are <code>false</code>.</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="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-BoolMask-for-bool" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/bool_mask.rs.html#77">Source</a><a href="#impl-BoolMask-for-bool" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.BoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::BoolMask">BoolMask</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h3></section></summary><div class="impl-items"><section id="method.from_bool" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/bool_mask.rs.html#79">Source</a><a href="#method.from_bool" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.from_bool" class="fn">from_bool</a>(value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section><section id="method.is_true" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/bool_mask.rs.html#84">Source</a><a href="#method.is_true" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_true" class="fn">is_true</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section><section id="method.is_false" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/bool_mask.rs.html#89">Source</a><a href="#method.is_false" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_false" class="fn">is_false</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../../../trait.impl/palette/bool_mask/trait.BoolMask.js" data-ignore-extern-crates="std" async></script></section></div></main></body></html>
|
||||
41
cosmic/cosmic_theme/palette/bool_mask/trait.HasBoolMask.html
Normal file
41
cosmic/cosmic_theme/palette/bool_mask/trait.HasBoolMask.html
Normal file
File diff suppressed because one or more lines are too long
16
cosmic/cosmic_theme/palette/bool_mask/trait.LazySelect.html
Normal file
16
cosmic/cosmic_theme/palette/bool_mask/trait.LazySelect.html
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<!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="Like `Select`, but can avoid evaluating the input."><title>LazySelect in cosmic::cosmic_theme::palette::bool_mask - 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="#">Lazy<wbr>Select</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.lazy_select" title="lazy_select">lazy_select</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-LazySelect%3CT%3E-for-bool" title="bool">bool</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::<wbr>bool_<wbr>mask</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">bool_mask</a></div><h1>Trait <span class="trait">LazySelect</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/bool_mask.rs.html#120">Source</a> </span></div><pre class="rust item-decl"><code>pub trait LazySelect<T>: <a class="trait" href="trait.Select.html" title="trait cosmic::cosmic_theme::palette::bool_mask::Select">Select</a><T><div class="where">where
|
||||
T: <a class="trait" href="trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a><Mask = Self>,</div>{
|
||||
// Required method
|
||||
fn <a href="#tymethod.lazy_select" class="fn">lazy_select</a><A, B>(self, a: A, b: B) -> T
|
||||
<span class="where">where A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>() -> T,
|
||||
B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>() -> T</span>;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Like <a href="trait.Select.html" title="trait cosmic::cosmic_theme::palette::bool_mask::Select"><code>Select</code></a>, but can avoid evaluating the input.</p>
|
||||
</div></details><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.lazy_select" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/bool_mask.rs.html#128-131">Source</a><h4 class="code-header">fn <a href="#tymethod.lazy_select" class="fn">lazy_select</a><A, B>(self, a: A, b: B) -> T<div class="where">where
|
||||
A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>() -> T,
|
||||
B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>() -> T,</div></h4></section></summary><div class="docblock"><p>Select lanes from the output of <code>a</code> when corresponding lanes in <code>self</code>
|
||||
are <code>true</code>, and select from the output of <code>b</code> when <code>false</code>. May avoid
|
||||
evaluating either option if it’s not selected.</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="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-LazySelect%3CT%3E-for-bool" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/bool_mask.rs.html#134-136">Source</a><a href="#impl-LazySelect%3CT%3E-for-bool" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="trait.LazySelect.html" title="trait cosmic::cosmic_theme::palette::bool_mask::LazySelect">LazySelect</a><T> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a><div class="where">where
|
||||
T: <a class="trait" href="trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a><Mask = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>>,</div></h3></section></summary><div class="impl-items"><section id="method.lazy_select" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/bool_mask.rs.html#139-142">Source</a><a href="#method.lazy_select" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.lazy_select" class="fn">lazy_select</a><A, B>(self, a: A, b: B) -> T<div class="where">where
|
||||
A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>() -> T,
|
||||
B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>() -> T,</div></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../../../trait.impl/palette/bool_mask/trait.LazySelect.js" data-ignore-extern-crates="std" async></script></section></div></main></body></html>
|
||||
9
cosmic/cosmic_theme/palette/bool_mask/trait.Select.html
Normal file
9
cosmic/cosmic_theme/palette/bool_mask/trait.Select.html
Normal 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="Makes a mask bale to select between two values."><title>Select in cosmic::cosmic_theme::palette::bool_mask - 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="#">Select</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.select" title="select">select</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Select%3CT%3E-for-bool" title="bool">bool</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>bool_<wbr>mask</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">bool_mask</a></div><h1>Trait <span class="trait">Select</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/bool_mask.rs.html#95">Source</a> </span></div><pre class="rust item-decl"><code>pub trait Select<T><div class="where">where
|
||||
T: <a class="trait" href="trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a><Mask = Self>,</div>{
|
||||
// Required method
|
||||
fn <a href="#tymethod.select" class="fn">select</a>(self, a: T, b: T) -> T;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Makes a mask bale to select between two values.</p>
|
||||
</div></details><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.select" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/bool_mask.rs.html#102">Source</a><h4 class="code-header">fn <a href="#tymethod.select" class="fn">select</a>(self, a: T, b: T) -> T</h4></section></summary><div class="docblock"><p>Select lanes from <code>a</code> when corresponding lanes in <code>self</code> are <code>true</code>, and
|
||||
select from <code>b</code> when <code>false</code>.</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-Select%3CT%3E-for-bool" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/bool_mask.rs.html#105-107">Source</a><a href="#impl-Select%3CT%3E-for-bool" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="trait.Select.html" title="trait cosmic::cosmic_theme::palette::bool_mask::Select">Select</a><T> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a><div class="where">where
|
||||
T: <a class="trait" href="trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a><Mask = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>>,</div></h3></section></summary><div class="impl-items"><section id="method.select" class="method trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/bool_mask.rs.html#110">Source</a><a href="#method.select" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.select" class="fn">select</a>(self, a: T, b: T) -> T</h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../../../trait.impl/palette/bool_mask/trait.Select.js" data-ignore-extern-crates="std" async></script></section></div></main></body></html>
|
||||
2
cosmic/cosmic_theme/palette/cam16/cam16_jch/index.html
Normal file
2
cosmic/cosmic_theme/palette/cam16/cam16_jch/index.html
Normal 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="Partial CIE CAM16, with lightness and chroma, and helper types."><title>cosmic::cosmic_theme::palette::cam16::cam16_jch - 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 cam16_<wbr>jch</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>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>Module <span>cam16_jch</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/partial.rs.html#554-567">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Partial CIE CAM16, with lightness and chroma, and helper 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.Cam16Jch.html" title="struct cosmic::cosmic_theme::palette::cam16::cam16_jch::Cam16Jch">Cam16<wbr>Jch</a></dt><dd>Partial CIE CAM16, with lightness and chroma.</dd><dt><a class="struct" href="struct.Iter.html" title="struct cosmic::cosmic_theme::palette::cam16::cam16_jch::Iter">Iter</a></dt><dd>An iterator for <a href="../struct.Cam16Jch.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jch"><code>Cam16Jch</code></a> values.</dd></dl></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"struct":["Cam16Jch","Iter"]};
|
||||
411
cosmic/cosmic_theme/palette/cam16/cam16_jch/struct.Cam16Jch.html
Normal file
411
cosmic/cosmic_theme/palette/cam16/cam16_jch/struct.Cam16Jch.html
Normal file
File diff suppressed because one or more lines are too long
296
cosmic/cosmic_theme/palette/cam16/cam16_jch/struct.Iter.html
Normal file
296
cosmic/cosmic_theme/palette/cam16/cam16_jch/struct.Iter.html
Normal file
File diff suppressed because one or more lines are too long
2
cosmic/cosmic_theme/palette/cam16/cam16_jmh/index.html
Normal file
2
cosmic/cosmic_theme/palette/cam16/cam16_jmh/index.html
Normal 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="Partial CIE CAM16, with lightness and colorfulness, and helper types."><title>cosmic::cosmic_theme::palette::cam16::cam16_jmh - 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 cam16_<wbr>jmh</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>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>Module <span>cam16_jmh</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/partial.rs.html#573-598">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Partial CIE CAM16, with lightness and colorfulness, and helper 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.Cam16Jmh.html" title="struct cosmic::cosmic_theme::palette::cam16::cam16_jmh::Cam16Jmh">Cam16<wbr>Jmh</a></dt><dd>Partial CIE CAM16, with lightness and colorfulness.</dd><dt><a class="struct" href="struct.Iter.html" title="struct cosmic::cosmic_theme::palette::cam16::cam16_jmh::Iter">Iter</a></dt><dd>An iterator for <a href="../struct.Cam16Jmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jmh"><code>Cam16Jmh</code></a> values.</dd></dl></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"struct":["Cam16Jmh","Iter"]};
|
||||
427
cosmic/cosmic_theme/palette/cam16/cam16_jmh/struct.Cam16Jmh.html
Normal file
427
cosmic/cosmic_theme/palette/cam16/cam16_jmh/struct.Cam16Jmh.html
Normal file
File diff suppressed because one or more lines are too long
296
cosmic/cosmic_theme/palette/cam16/cam16_jmh/struct.Iter.html
Normal file
296
cosmic/cosmic_theme/palette/cam16/cam16_jmh/struct.Iter.html
Normal file
File diff suppressed because one or more lines are too long
2
cosmic/cosmic_theme/palette/cam16/cam16_jsh/index.html
Normal file
2
cosmic/cosmic_theme/palette/cam16/cam16_jsh/index.html
Normal 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="Partial CIE CAM16, with lightness and saturation, and helper types."><title>cosmic::cosmic_theme::palette::cam16::cam16_jsh - 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 cam16_<wbr>jsh</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>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>Module <span>cam16_jsh</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/partial.rs.html#604-618">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Partial CIE CAM16, with lightness and saturation, and helper 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.Cam16Jsh.html" title="struct cosmic::cosmic_theme::palette::cam16::cam16_jsh::Cam16Jsh">Cam16<wbr>Jsh</a></dt><dd>Partial CIE CAM16, with lightness and saturation.</dd><dt><a class="struct" href="struct.Iter.html" title="struct cosmic::cosmic_theme::palette::cam16::cam16_jsh::Iter">Iter</a></dt><dd>An iterator for <a href="../struct.Cam16Jsh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jsh"><code>Cam16Jsh</code></a> values.</dd></dl></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"struct":["Cam16Jsh","Iter"]};
|
||||
416
cosmic/cosmic_theme/palette/cam16/cam16_jsh/struct.Cam16Jsh.html
Normal file
416
cosmic/cosmic_theme/palette/cam16/cam16_jsh/struct.Cam16Jsh.html
Normal file
File diff suppressed because one or more lines are too long
296
cosmic/cosmic_theme/palette/cam16/cam16_jsh/struct.Iter.html
Normal file
296
cosmic/cosmic_theme/palette/cam16/cam16_jsh/struct.Iter.html
Normal file
File diff suppressed because one or more lines are too long
2
cosmic/cosmic_theme/palette/cam16/cam16_qch/index.html
Normal file
2
cosmic/cosmic_theme/palette/cam16/cam16_qch/index.html
Normal 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="Partial CIE CAM16, with brightness and chroma, and helper types."><title>cosmic::cosmic_theme::palette::cam16::cam16_qch - 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 cam16_<wbr>qch</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>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>Module <span>cam16_qch</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/partial.rs.html#624-637">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Partial CIE CAM16, with brightness and chroma, and helper 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.Cam16Qch.html" title="struct cosmic::cosmic_theme::palette::cam16::cam16_qch::Cam16Qch">Cam16<wbr>Qch</a></dt><dd>Partial CIE CAM16, with brightness and chroma.</dd><dt><a class="struct" href="struct.Iter.html" title="struct cosmic::cosmic_theme::palette::cam16::cam16_qch::Iter">Iter</a></dt><dd>An iterator for <a href="../struct.Cam16Qch.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qch"><code>Cam16Qch</code></a> values.</dd></dl></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"struct":["Cam16Qch","Iter"]};
|
||||
415
cosmic/cosmic_theme/palette/cam16/cam16_qch/struct.Cam16Qch.html
Normal file
415
cosmic/cosmic_theme/palette/cam16/cam16_qch/struct.Cam16Qch.html
Normal file
File diff suppressed because one or more lines are too long
296
cosmic/cosmic_theme/palette/cam16/cam16_qch/struct.Iter.html
Normal file
296
cosmic/cosmic_theme/palette/cam16/cam16_qch/struct.Iter.html
Normal file
File diff suppressed because one or more lines are too long
2
cosmic/cosmic_theme/palette/cam16/cam16_qmh/index.html
Normal file
2
cosmic/cosmic_theme/palette/cam16/cam16_qmh/index.html
Normal 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="Partial CIE CAM16, with brightness and colorfulness, and helper types."><title>cosmic::cosmic_theme::palette::cam16::cam16_qmh - 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 cam16_<wbr>qmh</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>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>Module <span>cam16_qmh</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/partial.rs.html#643-657">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Partial CIE CAM16, with brightness and colorfulness, and helper 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.Cam16Qmh.html" title="struct cosmic::cosmic_theme::palette::cam16::cam16_qmh::Cam16Qmh">Cam16<wbr>Qmh</a></dt><dd>Partial CIE CAM16, with brightness and colorfulness.</dd><dt><a class="struct" href="struct.Iter.html" title="struct cosmic::cosmic_theme::palette::cam16::cam16_qmh::Iter">Iter</a></dt><dd>An iterator for <a href="../struct.Cam16Qmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qmh"><code>Cam16Qmh</code></a> values.</dd></dl></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"struct":["Cam16Qmh","Iter"]};
|
||||
416
cosmic/cosmic_theme/palette/cam16/cam16_qmh/struct.Cam16Qmh.html
Normal file
416
cosmic/cosmic_theme/palette/cam16/cam16_qmh/struct.Cam16Qmh.html
Normal file
File diff suppressed because one or more lines are too long
296
cosmic/cosmic_theme/palette/cam16/cam16_qmh/struct.Iter.html
Normal file
296
cosmic/cosmic_theme/palette/cam16/cam16_qmh/struct.Iter.html
Normal file
File diff suppressed because one or more lines are too long
2
cosmic/cosmic_theme/palette/cam16/cam16_qsh/index.html
Normal file
2
cosmic/cosmic_theme/palette/cam16/cam16_qsh/index.html
Normal 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="Partial CIE CAM16, with brightness and saturation, and helper types."><title>cosmic::cosmic_theme::palette::cam16::cam16_qsh - 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 cam16_<wbr>qsh</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>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>Module <span>cam16_qsh</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/partial.rs.html#663-677">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Partial CIE CAM16, with brightness and saturation, and helper 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.Cam16Qsh.html" title="struct cosmic::cosmic_theme::palette::cam16::cam16_qsh::Cam16Qsh">Cam16<wbr>Qsh</a></dt><dd>Partial CIE CAM16, with brightness and saturation.</dd><dt><a class="struct" href="struct.Iter.html" title="struct cosmic::cosmic_theme::palette::cam16::cam16_qsh::Iter">Iter</a></dt><dd>An iterator for <a href="../struct.Cam16Qsh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qsh"><code>Cam16Qsh</code></a> values.</dd></dl></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"struct":["Cam16Qsh","Iter"]};
|
||||
416
cosmic/cosmic_theme/palette/cam16/cam16_qsh/struct.Cam16Qsh.html
Normal file
416
cosmic/cosmic_theme/palette/cam16/cam16_qsh/struct.Cam16Qsh.html
Normal file
File diff suppressed because one or more lines are too long
296
cosmic/cosmic_theme/palette/cam16/cam16_qsh/struct.Iter.html
Normal file
296
cosmic/cosmic_theme/palette/cam16/cam16_qsh/struct.Iter.html
Normal file
File diff suppressed because one or more lines are too long
86
cosmic/cosmic_theme/palette/cam16/enum.Discounting.html
Normal file
86
cosmic/cosmic_theme/palette/cam16/enum.Discounting.html
Normal file
File diff suppressed because one or more lines are too long
90
cosmic/cosmic_theme/palette/cam16/enum.Surround.html
Normal file
90
cosmic/cosmic_theme/palette/cam16/enum.Surround.html
Normal file
File diff suppressed because one or more lines are too long
68
cosmic/cosmic_theme/palette/cam16/index.html
Normal file
68
cosmic/cosmic_theme/palette/cam16/index.html
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
<!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 the CIE CAM16 color appearance model."><title>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 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 cam16</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#converting-between-xyz-and-cam16" title="Converting Between XYZ and CAM16">Converting Between XYZ and CAM16</a></li><li><a href="#the-cam16-ucs-color-space" title="The CAM16-UCS Color Space">The CAM16-UCS Color Space</a></li></ul><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="#enums" title="Enums">Enums</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>cam16</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#347">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Types for the CIE CAM16 color appearance model.</p>
|
||||
<p>CIE CAM16 is a color appearance model that tries to predict the appearance
|
||||
of a color under certain viewing conditions, as specified via the
|
||||
<a href="struct.Parameters.html" title="struct cosmic::cosmic_theme::palette::cam16::Parameters"><code>Parameters</code></a> type. The <a href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16"><code>Cam16</code></a> type has descriptions for the CAM16
|
||||
attributes. The <a href="https://en.wikipedia.org/wiki/Color_appearance_model">Color appearance model page on Wikipedia</a>
|
||||
has some history and background as well.</p>
|
||||
<h2 id="converting-between-xyz-and-cam16"><a class="doc-anchor" href="#converting-between-xyz-and-cam16">§</a>Converting Between XYZ and CAM16</h2>
|
||||
<p>The CIE CAM16 implementation in Palette has the <a href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16"><code>Cam16</code></a> type and its
|
||||
partial variants on one side of the boundary, and <a href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz"><code>Xyz</code></a> on the
|
||||
other. Going between <code>Xyz</code> and <code>Cam16</code> requires the viewing conditions to be
|
||||
specified as <a href="struct.Parameters.html" title="struct cosmic::cosmic_theme::palette::cam16::Parameters"><code>Parameters</code></a>.</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>palette::{
|
||||
Srgb, FromColor, IntoColor,
|
||||
cam16::{Cam16, Parameters},
|
||||
};
|
||||
|
||||
<span class="comment">// Customize these according to the viewing conditions:
|
||||
</span><span class="kw">let </span><span class="kw-2">mut </span>example_parameters = Parameters::default_static_wp(<span class="number">40.0</span>);
|
||||
|
||||
<span class="comment">// CAM16 from sRGB, or most other color spaces:
|
||||
</span><span class="kw">let </span>rgb = Srgb::new(<span class="number">0.3f32</span>, <span class="number">0.8</span>, <span class="number">0.1</span>);
|
||||
<span class="kw">let </span>cam16_from_rgb = Cam16::from_xyz(rgb.into_color(), example_parameters);
|
||||
|
||||
<span class="comment">// sRGB from CAM16, using lightness, chroma and hue by default:
|
||||
</span><span class="kw">let </span>rgb_from_cam16 = Srgb::from_color(cam16_from_rgb.into_xyz(example_parameters));</code></pre></div>
|
||||
<p>For more control over the attributes to use when converting from CAM16, one
|
||||
of the partial CAM16 types can be used:</p>
|
||||
<ul>
|
||||
<li><a href="struct.Cam16Jch.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jch"><code>Cam16Jch</code></a>: lightness and chroma.</li>
|
||||
<li><a href="struct.Cam16Jmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jmh"><code>Cam16Jmh</code></a>: lightness and colorfulness.</li>
|
||||
<li><a href="struct.Cam16Jsh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jsh"><code>Cam16Jsh</code></a>: lightness and saturation.</li>
|
||||
<li><a href="struct.Cam16Qch.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qch"><code>Cam16Qch</code></a>: brightness and chroma.</li>
|
||||
<li><a href="struct.Cam16Qmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qmh"><code>Cam16Qmh</code></a>: brightness and colorfulness.</li>
|
||||
<li><a href="struct.Cam16Qsh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qsh"><code>Cam16Qsh</code></a>: brightness and saturation.</li>
|
||||
</ul>
|
||||
<p>Generic traits and functions can make use of the <a href="trait.IntoCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::IntoCam16Unclamped"><code>IntoCam16Unclamped</code></a>,
|
||||
<a href="trait.FromCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::FromCam16Unclamped"><code>FromCam16Unclamped</code></a>, <a href="trait.Cam16IntoUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16IntoUnclamped"><code>Cam16IntoUnclamped</code></a>, and <a href="trait.Cam16FromUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped"><code>Cam16FromUnclamped</code></a>
|
||||
traits. They are similar to the traits from the <a href="../convert/index.html" title="mod cosmic::cosmic_theme::palette::convert"><code>convert</code></a>
|
||||
module and help abstracting away most of the implementation details.</p>
|
||||
<h2 id="the-cam16-ucs-color-space"><a class="doc-anchor" href="#the-cam16-ucs-color-space">§</a>The CAM16-UCS Color Space</h2>
|
||||
<p>CIE CAM16 specifies a visually uniform color space that can be used for
|
||||
color manipulation. It’s represented by the <a href="struct.Cam16UcsJmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16UcsJmh"><code>Cam16UcsJmh</code></a> and
|
||||
<a href="struct.Cam16UcsJab.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16UcsJab"><code>Cam16UcsJab</code></a> types, similar to <a href="../struct.Lch.html" title="struct cosmic::cosmic_theme::palette::Lch"><code>Lch</code></a> and
|
||||
<a href="../struct.Lab.html" title="struct cosmic::cosmic_theme::palette::Lab"><code>Lab</code></a>.</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>palette::{
|
||||
Srgb, FromColor, IntoColor,
|
||||
cam16::{Cam16Jmh, Parameters, Cam16UcsJmh},
|
||||
};
|
||||
|
||||
<span class="comment">// Customize these according to the viewing conditions:
|
||||
</span><span class="kw">let </span><span class="kw-2">mut </span>example_parameters = Parameters::default_static_wp(<span class="number">40.0</span>);
|
||||
|
||||
<span class="comment">// CAM16-UCS from sRGB, or most other color spaces:
|
||||
</span><span class="kw">let </span>rgb = Srgb::new(<span class="number">0.3f32</span>, <span class="number">0.8</span>, <span class="number">0.1</span>);
|
||||
<span class="kw">let </span>cam16 = Cam16Jmh::from_xyz(rgb.into_color(), example_parameters);
|
||||
<span class="kw">let </span><span class="kw-2">mut </span>ucs_from_rgb = Cam16UcsJmh::from_color(cam16);
|
||||
|
||||
<span class="comment">// Shift the hue by 120 degrees in CAM16-UCS:
|
||||
</span>ucs_from_rgb.hue += <span class="number">120.0</span>;
|
||||
|
||||
<span class="comment">// Convert back to sRGB under the same viewing conditions:
|
||||
</span><span class="kw">let </span>rgb = Srgb::from_color(Cam16Jmh::from_color(ucs_from_rgb).into_xyz(example_parameters));</code></pre></div>
|
||||
</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="cam16_jch/index.html" title="mod cosmic::cosmic_theme::palette::cam16::cam16_jch">cam16_<wbr>jch</a></dt><dd>Partial CIE CAM16, with lightness and chroma, and helper types.</dd><dt><a class="mod" href="cam16_jmh/index.html" title="mod cosmic::cosmic_theme::palette::cam16::cam16_jmh">cam16_<wbr>jmh</a></dt><dd>Partial CIE CAM16, with lightness and colorfulness, and helper types.</dd><dt><a class="mod" href="cam16_jsh/index.html" title="mod cosmic::cosmic_theme::palette::cam16::cam16_jsh">cam16_<wbr>jsh</a></dt><dd>Partial CIE CAM16, with lightness and saturation, and helper types.</dd><dt><a class="mod" href="cam16_qch/index.html" title="mod cosmic::cosmic_theme::palette::cam16::cam16_qch">cam16_<wbr>qch</a></dt><dd>Partial CIE CAM16, with brightness and chroma, and helper types.</dd><dt><a class="mod" href="cam16_qmh/index.html" title="mod cosmic::cosmic_theme::palette::cam16::cam16_qmh">cam16_<wbr>qmh</a></dt><dd>Partial CIE CAM16, with brightness and colorfulness, and helper types.</dd><dt><a class="mod" href="cam16_qsh/index.html" title="mod cosmic::cosmic_theme::palette::cam16::cam16_qsh">cam16_<wbr>qsh</a></dt><dd>Partial CIE CAM16, with brightness and saturation, and helper 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.BakedParameters.html" title="struct cosmic::cosmic_theme::palette::cam16::BakedParameters">Baked<wbr>Parameters</a></dt><dd>Pre-calculated variables for CAM16, that only depend on the viewing
|
||||
conditions.</dd><dt><a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a></dt><dd>The CIE CAM16 color appearance model.</dd><dt><a class="struct" href="struct.Cam16Jch.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jch">Cam16<wbr>Jch</a></dt><dd>Partial CIE CAM16, with lightness and chroma.</dd><dt><a class="struct" href="struct.Cam16Jmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jmh">Cam16<wbr>Jmh</a></dt><dd>Partial CIE CAM16, with lightness and colorfulness.</dd><dt><a class="struct" href="struct.Cam16Jsh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jsh">Cam16<wbr>Jsh</a></dt><dd>Partial CIE CAM16, with lightness and saturation.</dd><dt><a class="struct" href="struct.Cam16Qch.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qch">Cam16<wbr>Qch</a></dt><dd>Partial CIE CAM16, with brightness and chroma.</dd><dt><a class="struct" href="struct.Cam16Qmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qmh">Cam16<wbr>Qmh</a></dt><dd>Partial CIE CAM16, with brightness and colorfulness.</dd><dt><a class="struct" href="struct.Cam16Qsh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qsh">Cam16<wbr>Qsh</a></dt><dd>Partial CIE CAM16, with brightness and saturation.</dd><dt><a class="struct" href="struct.Cam16UcsJab.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16UcsJab">Cam16<wbr>UcsJab</a></dt><dd>The Cartesian form of CAM16-UCS, or J’ a’ b’.</dd><dt><a class="struct" href="struct.Cam16UcsJabIter.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16UcsJabIter">Cam16<wbr>UcsJab<wbr>Iter</a></dt><dd>An iterator for <a href="struct.Cam16UcsJab.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16UcsJab"><code>Cam16UcsJab</code></a> values.</dd><dt><a class="struct" href="struct.Cam16UcsJmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16UcsJmh">Cam16<wbr>UcsJmh</a></dt><dd>The polar form of CAM16-UCS, or J’M’h’.</dd><dt><a class="struct" href="struct.Cam16UcsJmhIter.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16UcsJmhIter">Cam16<wbr>UcsJmh<wbr>Iter</a></dt><dd>An iterator for <a href="struct.Cam16UcsJmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16UcsJmh"><code>Cam16UcsJmh</code></a> values.</dd><dt><a class="struct" href="struct.Parameters.html" title="struct cosmic::cosmic_theme::palette::cam16::Parameters">Parameters</a></dt><dd>Parameters for CAM16 that describe the viewing conditions.</dd><dt><a class="struct" href="struct.StaticWp.html" title="struct cosmic::cosmic_theme::palette::cam16::StaticWp">Static<wbr>Wp</a></dt><dd>Represents a static white point in <a href="struct.Parameters.html" title="struct cosmic::cosmic_theme::palette::cam16::Parameters"><code>Parameters</code></a>, as opposed to a dynamic
|
||||
<a href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz"><code>Xyz</code></a> value.</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.Discounting.html" title="enum cosmic::cosmic_theme::palette::cam16::Discounting">Discounting</a></dt><dd>The degree of discounting of (or adaptation to) the illuminant.</dd><dt><a class="enum" href="enum.Surround.html" title="enum cosmic::cosmic_theme::palette::cam16::Surround">Surround</a></dt><dd>A description of the peripheral area.</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.Cam16FromUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped">Cam16<wbr>From<wbr>Unclamped</a></dt><dd>A trait for converting into a CAM16 color type from <code>C</code> without clamping.</dd><dt><a class="trait" href="trait.Cam16IntoUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16IntoUnclamped">Cam16<wbr>Into<wbr>Unclamped</a></dt><dd>A trait for converting from a CAM16 color type into <code>C</code> without clamping.</dd><dt><a class="trait" href="trait.FromCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::FromCam16Unclamped">From<wbr>Cam16<wbr>Unclamped</a></dt><dd>A trait for converting from a CAM16 color type <code>C</code> without clamping.</dd><dt><a class="trait" href="trait.IntoCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::IntoCam16Unclamped">Into<wbr>Cam16<wbr>Unclamped</a></dt><dd>A trait for converting into a CAM16 color type <code>C</code> without clamping.</dd><dt><a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">White<wbr>Point<wbr>Parameter</a></dt><dd>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>.</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.Cam16Jcha.html" title="type cosmic::cosmic_theme::palette::cam16::Cam16Jcha">Cam16<wbr>Jcha</a></dt><dd>Partial CIE CAM16 with lightness, chroma, and an alpha component.</dd><dt><a class="type" href="type.Cam16Jmha.html" title="type cosmic::cosmic_theme::palette::cam16::Cam16Jmha">Cam16<wbr>Jmha</a></dt><dd>Partial CIE CAM16 with lightness, colorfulness, and an alpha component.</dd><dt><a class="type" href="type.Cam16Jsha.html" title="type cosmic::cosmic_theme::palette::cam16::Cam16Jsha">Cam16<wbr>Jsha</a></dt><dd>Partial CIE CAM16 with lightness, saturation, and an alpha component.</dd><dt><a class="type" href="type.Cam16Qcha.html" title="type cosmic::cosmic_theme::palette::cam16::Cam16Qcha">Cam16<wbr>Qcha</a></dt><dd>Partial CIE CAM16 with brightness, chroma, and an alpha component.</dd><dt><a class="type" href="type.Cam16Qmha.html" title="type cosmic::cosmic_theme::palette::cam16::Cam16Qmha">Cam16<wbr>Qmha</a></dt><dd>Partial CIE CAM16 with brightness, colorfulness, and an alpha component.</dd><dt><a class="type" href="type.Cam16Qsha.html" title="type cosmic::cosmic_theme::palette::cam16::Cam16Qsha">Cam16<wbr>Qsha</a></dt><dd>Partial CIE CAM16 with brightness, saturation, and an alpha component.</dd><dt><a class="type" href="type.Cam16UcsJaba.html" title="type cosmic::cosmic_theme::palette::cam16::Cam16UcsJaba">Cam16<wbr>UcsJaba</a></dt><dd>Cartesian CAM16-UCS with an alpha component.</dd><dt><a class="type" href="type.Cam16UcsJmha.html" title="type cosmic::cosmic_theme::palette::cam16::Cam16UcsJmha">Cam16<wbr>UcsJmha</a></dt><dd>Polar CAM16-UCS with an alpha component.</dd><dt><a class="type" href="type.Cam16a.html" title="type cosmic::cosmic_theme::palette::cam16::Cam16a">Cam16a</a></dt><dd>CIE CAM16 with an alpha component.</dd></dl></section></div></main></body></html>
|
||||
1
cosmic/cosmic_theme/palette/cam16/sidebar-items.js
Normal file
1
cosmic/cosmic_theme/palette/cam16/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"enum":["Discounting","Surround"],"mod":["cam16_jch","cam16_jmh","cam16_jsh","cam16_qch","cam16_qmh","cam16_qsh"],"struct":["BakedParameters","Cam16","Cam16Jch","Cam16Jmh","Cam16Jsh","Cam16Qch","Cam16Qmh","Cam16Qsh","Cam16UcsJab","Cam16UcsJabIter","Cam16UcsJmh","Cam16UcsJmhIter","Parameters","StaticWp"],"trait":["Cam16FromUnclamped","Cam16IntoUnclamped","FromCam16Unclamped","IntoCam16Unclamped","WhitePointParameter"],"type":["Cam16Jcha","Cam16Jmha","Cam16Jsha","Cam16Qcha","Cam16Qmha","Cam16Qsha","Cam16UcsJaba","Cam16UcsJmha","Cam16a"]};
|
||||
File diff suppressed because one or more lines are too long
391
cosmic/cosmic_theme/palette/cam16/struct.Cam16.html
Normal file
391
cosmic/cosmic_theme/palette/cam16/struct.Cam16.html
Normal file
File diff suppressed because one or more lines are too long
411
cosmic/cosmic_theme/palette/cam16/struct.Cam16Jch.html
Normal file
411
cosmic/cosmic_theme/palette/cam16/struct.Cam16Jch.html
Normal file
File diff suppressed because one or more lines are too long
427
cosmic/cosmic_theme/palette/cam16/struct.Cam16Jmh.html
Normal file
427
cosmic/cosmic_theme/palette/cam16/struct.Cam16Jmh.html
Normal file
File diff suppressed because one or more lines are too long
416
cosmic/cosmic_theme/palette/cam16/struct.Cam16Jsh.html
Normal file
416
cosmic/cosmic_theme/palette/cam16/struct.Cam16Jsh.html
Normal file
File diff suppressed because one or more lines are too long
415
cosmic/cosmic_theme/palette/cam16/struct.Cam16Qch.html
Normal file
415
cosmic/cosmic_theme/palette/cam16/struct.Cam16Qch.html
Normal file
File diff suppressed because one or more lines are too long
416
cosmic/cosmic_theme/palette/cam16/struct.Cam16Qmh.html
Normal file
416
cosmic/cosmic_theme/palette/cam16/struct.Cam16Qmh.html
Normal file
File diff suppressed because one or more lines are too long
416
cosmic/cosmic_theme/palette/cam16/struct.Cam16Qsh.html
Normal file
416
cosmic/cosmic_theme/palette/cam16/struct.Cam16Qsh.html
Normal file
File diff suppressed because one or more lines are too long
359
cosmic/cosmic_theme/palette/cam16/struct.Cam16UcsJab.html
Normal file
359
cosmic/cosmic_theme/palette/cam16/struct.Cam16UcsJab.html
Normal file
File diff suppressed because one or more lines are too long
296
cosmic/cosmic_theme/palette/cam16/struct.Cam16UcsJabIter.html
Normal file
296
cosmic/cosmic_theme/palette/cam16/struct.Cam16UcsJabIter.html
Normal file
File diff suppressed because one or more lines are too long
341
cosmic/cosmic_theme/palette/cam16/struct.Cam16UcsJmh.html
Normal file
341
cosmic/cosmic_theme/palette/cam16/struct.Cam16UcsJmh.html
Normal file
File diff suppressed because one or more lines are too long
296
cosmic/cosmic_theme/palette/cam16/struct.Cam16UcsJmhIter.html
Normal file
296
cosmic/cosmic_theme/palette/cam16/struct.Cam16UcsJmhIter.html
Normal file
File diff suppressed because one or more lines are too long
147
cosmic/cosmic_theme/palette/cam16/struct.Parameters.html
Normal file
147
cosmic/cosmic_theme/palette/cam16/struct.Parameters.html
Normal file
File diff suppressed because one or more lines are too long
76
cosmic/cosmic_theme/palette/cam16/struct.StaticWp.html
Normal file
76
cosmic/cosmic_theme/palette/cam16/struct.StaticWp.html
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,54 @@
|
|||
<!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 converting into a CAM16 color type from `C` without clamping."><title>Cam16FromUnclamped 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="#">Cam16<wbr>From<wbr>Unclamped</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.cam16_from_unclamped" title="cam16_from_unclamped">cam16_from_unclamped</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::<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">Cam16FromUnclamped</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.rs.html#97">Source</a> </span></div><pre class="rust item-decl"><code>pub trait Cam16FromUnclamped<WpParam, C> {
|
||||
type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a>;
|
||||
|
||||
// Required method
|
||||
fn <a href="#tymethod.cam16_from_unclamped" class="fn">cam16_from_unclamped</a>(
|
||||
color: C,
|
||||
parameters: <a class="struct" href="struct.BakedParameters.html" title="struct cosmic::cosmic_theme::palette::cam16::BakedParameters">BakedParameters</a><WpParam, Self::<a class="associatedtype" href="trait.Cam16FromUnclamped.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped::Scalar">Scalar</a>>,
|
||||
) -> Self;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A trait for converting into a CAM16 color type from <code>C</code> without clamping.</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/cam16.rs.html#99">Source</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a></h4></section></summary><div class="docblock"><p>The number type that’s used in <code>parameters</code> when converting.</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.cam16_from_unclamped" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16.rs.html#102">Source</a><h4 class="code-header">fn <a href="#tymethod.cam16_from_unclamped" class="fn">cam16_from_unclamped</a>(
|
||||
color: C,
|
||||
parameters: <a class="struct" href="struct.BakedParameters.html" title="struct cosmic::cosmic_theme::palette::cam16::BakedParameters">BakedParameters</a><WpParam, Self::<a class="associatedtype" href="trait.Cam16FromUnclamped.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped::Scalar">Scalar</a>>,
|
||||
) -> Self</h4></section></summary><div class="docblock"><p>Converts <code>color</code> into <code>Self</code>, using the provided parameters.</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-Cam16FromUnclamped%3CWpParam,+Xyz%3C%3CWpParam+as+WhitePointParameter%3C%3CT+as+FromScalar%3E::Scalar%3E%3E::StaticWp,+T%3E%3E-for-Cam16%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/full.rs.html#356-369">Source</a><a href="#impl-Cam16FromUnclamped%3CWpParam,+Xyz%3C%3CWpParam+as+WhitePointParameter%3C%3CT+as+FromScalar%3E::Scalar%3E%3E::StaticWp,+T%3E%3E-for-Cam16%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<WpParam, T> <a class="trait" href="trait.Cam16FromUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped">Cam16FromUnclamped</a><WpParam, <a class="struct" href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a><<WpParam as <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><<T as <a class="trait" href="../num/trait.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a>>::<a class="associatedtype" href="../num/trait.FromScalar.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::num::FromScalar::Scalar">Scalar</a>>>::<a class="associatedtype" href="trait.WhitePointParameter.html#associatedtype.StaticWp" title="type cosmic::cosmic_theme::palette::cam16::WhitePointParameter::StaticWp">StaticWp</a>, T>> for <a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T><div class="where">where
|
||||
WpParam: <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><<T as <a class="trait" href="../num/trait.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a>>::<a class="associatedtype" href="../num/trait.FromScalar.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::num::FromScalar::Scalar">Scalar</a>>,
|
||||
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.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</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.Powf.html" title="trait cosmic::cosmic_theme::palette::num::Powf">Powf</a> + <a class="trait" href="../num/trait.Sqrt.html" title="trait cosmic::cosmic_theme::palette::num::Sqrt">Sqrt</a> + <a class="trait" href="../num/trait.Abs.html" title="trait cosmic::cosmic_theme::palette::num::Abs">Abs</a> + <a class="trait" href="../num/trait.Signum.html" title="trait cosmic::cosmic_theme::palette::num::Signum">Signum</a> + <a class="trait" href="../num/trait.Trigonometry.html" title="trait cosmic::cosmic_theme::palette::num::Trigonometry">Trigonometry</a> + <a class="trait" href="../angle/trait.RealAngle.html" title="trait cosmic::cosmic_theme::palette::angle::RealAngle">RealAngle</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../num/trait.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a>>::<a class="associatedtype" href="../num/trait.FromScalar.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::num::FromScalar::Scalar">Scalar</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-1" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/full.rs.html#371">Source</a><a href="#associatedtype.Scalar-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = <T as <a class="trait" href="../num/trait.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a>>::<a class="associatedtype" href="../num/trait.FromScalar.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::num::FromScalar::Scalar">Scalar</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Cam16FromUnclamped%3CWpParam,+Xyz%3C%3CWpParam+as+WhitePointParameter%3CT%3E%3E::StaticWp,+T%3E%3E-for-Cam16Jch%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#554-567">Source</a><a href="#impl-Cam16FromUnclamped%3CWpParam,+Xyz%3C%3CWpParam+as+WhitePointParameter%3CT%3E%3E::StaticWp,+T%3E%3E-for-Cam16Jch%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<WpParam, T> <a class="trait" href="trait.Cam16FromUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped">Cam16FromUnclamped</a><WpParam, <a class="struct" href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a><<WpParam as <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>>::<a class="associatedtype" href="trait.WhitePointParameter.html#associatedtype.StaticWp" title="type cosmic::cosmic_theme::palette::cam16::WhitePointParameter::StaticWp">StaticWp</a>, T>> for <a class="struct" href="struct.Cam16Jch.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jch">Cam16Jch</a><T><div class="where">where
|
||||
<a class="struct" href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a><<WpParam as <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>>::<a class="associatedtype" href="trait.WhitePointParameter.html#associatedtype.StaticWp" title="type cosmic::cosmic_theme::palette::cam16::WhitePointParameter::StaticWp">StaticWp</a>, T>: <a class="trait" href="trait.IntoCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::IntoCam16Unclamped">IntoCam16Unclamped</a><WpParam, <a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T>>,
|
||||
WpParam: <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>,</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/cam16/partial.rs.html#554-567">Source</a><a href="#associatedtype.Scalar-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = <<a class="struct" href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a><<WpParam as <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>>::<a class="associatedtype" href="trait.WhitePointParameter.html#associatedtype.StaticWp" title="type cosmic::cosmic_theme::palette::cam16::WhitePointParameter::StaticWp">StaticWp</a>, T> as <a class="trait" href="trait.IntoCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::IntoCam16Unclamped">IntoCam16Unclamped</a><WpParam, <a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T>>>::<a class="associatedtype" href="trait.IntoCam16Unclamped.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::cam16::IntoCam16Unclamped::Scalar">Scalar</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Cam16FromUnclamped%3CWpParam,+Xyz%3C%3CWpParam+as+WhitePointParameter%3CT%3E%3E::StaticWp,+T%3E%3E-for-Cam16Jmh%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#573-598">Source</a><a href="#impl-Cam16FromUnclamped%3CWpParam,+Xyz%3C%3CWpParam+as+WhitePointParameter%3CT%3E%3E::StaticWp,+T%3E%3E-for-Cam16Jmh%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<WpParam, T> <a class="trait" href="trait.Cam16FromUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped">Cam16FromUnclamped</a><WpParam, <a class="struct" href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a><<WpParam as <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>>::<a class="associatedtype" href="trait.WhitePointParameter.html#associatedtype.StaticWp" title="type cosmic::cosmic_theme::palette::cam16::WhitePointParameter::StaticWp">StaticWp</a>, T>> for <a class="struct" href="struct.Cam16Jmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jmh">Cam16Jmh</a><T><div class="where">where
|
||||
<a class="struct" href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a><<WpParam as <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>>::<a class="associatedtype" href="trait.WhitePointParameter.html#associatedtype.StaticWp" title="type cosmic::cosmic_theme::palette::cam16::WhitePointParameter::StaticWp">StaticWp</a>, T>: <a class="trait" href="trait.IntoCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::IntoCam16Unclamped">IntoCam16Unclamped</a><WpParam, <a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T>>,
|
||||
WpParam: <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>,</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/cam16/partial.rs.html#573-598">Source</a><a href="#associatedtype.Scalar-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = <<a class="struct" href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a><<WpParam as <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>>::<a class="associatedtype" href="trait.WhitePointParameter.html#associatedtype.StaticWp" title="type cosmic::cosmic_theme::palette::cam16::WhitePointParameter::StaticWp">StaticWp</a>, T> as <a class="trait" href="trait.IntoCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::IntoCam16Unclamped">IntoCam16Unclamped</a><WpParam, <a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T>>>::<a class="associatedtype" href="trait.IntoCam16Unclamped.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::cam16::IntoCam16Unclamped::Scalar">Scalar</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Cam16FromUnclamped%3CWpParam,+Xyz%3C%3CWpParam+as+WhitePointParameter%3CT%3E%3E::StaticWp,+T%3E%3E-for-Cam16Jsh%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#604-618">Source</a><a href="#impl-Cam16FromUnclamped%3CWpParam,+Xyz%3C%3CWpParam+as+WhitePointParameter%3CT%3E%3E::StaticWp,+T%3E%3E-for-Cam16Jsh%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<WpParam, T> <a class="trait" href="trait.Cam16FromUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped">Cam16FromUnclamped</a><WpParam, <a class="struct" href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a><<WpParam as <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>>::<a class="associatedtype" href="trait.WhitePointParameter.html#associatedtype.StaticWp" title="type cosmic::cosmic_theme::palette::cam16::WhitePointParameter::StaticWp">StaticWp</a>, T>> for <a class="struct" href="struct.Cam16Jsh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jsh">Cam16Jsh</a><T><div class="where">where
|
||||
<a class="struct" href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a><<WpParam as <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>>::<a class="associatedtype" href="trait.WhitePointParameter.html#associatedtype.StaticWp" title="type cosmic::cosmic_theme::palette::cam16::WhitePointParameter::StaticWp">StaticWp</a>, T>: <a class="trait" href="trait.IntoCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::IntoCam16Unclamped">IntoCam16Unclamped</a><WpParam, <a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T>>,
|
||||
WpParam: <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>,</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/cam16/partial.rs.html#604-618">Source</a><a href="#associatedtype.Scalar-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = <<a class="struct" href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a><<WpParam as <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>>::<a class="associatedtype" href="trait.WhitePointParameter.html#associatedtype.StaticWp" title="type cosmic::cosmic_theme::palette::cam16::WhitePointParameter::StaticWp">StaticWp</a>, T> as <a class="trait" href="trait.IntoCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::IntoCam16Unclamped">IntoCam16Unclamped</a><WpParam, <a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T>>>::<a class="associatedtype" href="trait.IntoCam16Unclamped.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::cam16::IntoCam16Unclamped::Scalar">Scalar</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Cam16FromUnclamped%3CWpParam,+Xyz%3C%3CWpParam+as+WhitePointParameter%3CT%3E%3E::StaticWp,+T%3E%3E-for-Cam16Qch%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#624-637">Source</a><a href="#impl-Cam16FromUnclamped%3CWpParam,+Xyz%3C%3CWpParam+as+WhitePointParameter%3CT%3E%3E::StaticWp,+T%3E%3E-for-Cam16Qch%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<WpParam, T> <a class="trait" href="trait.Cam16FromUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped">Cam16FromUnclamped</a><WpParam, <a class="struct" href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a><<WpParam as <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>>::<a class="associatedtype" href="trait.WhitePointParameter.html#associatedtype.StaticWp" title="type cosmic::cosmic_theme::palette::cam16::WhitePointParameter::StaticWp">StaticWp</a>, T>> for <a class="struct" href="struct.Cam16Qch.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qch">Cam16Qch</a><T><div class="where">where
|
||||
<a class="struct" href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a><<WpParam as <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>>::<a class="associatedtype" href="trait.WhitePointParameter.html#associatedtype.StaticWp" title="type cosmic::cosmic_theme::palette::cam16::WhitePointParameter::StaticWp">StaticWp</a>, T>: <a class="trait" href="trait.IntoCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::IntoCam16Unclamped">IntoCam16Unclamped</a><WpParam, <a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T>>,
|
||||
WpParam: <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>,</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/cam16/partial.rs.html#624-637">Source</a><a href="#associatedtype.Scalar-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = <<a class="struct" href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a><<WpParam as <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>>::<a class="associatedtype" href="trait.WhitePointParameter.html#associatedtype.StaticWp" title="type cosmic::cosmic_theme::palette::cam16::WhitePointParameter::StaticWp">StaticWp</a>, T> as <a class="trait" href="trait.IntoCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::IntoCam16Unclamped">IntoCam16Unclamped</a><WpParam, <a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T>>>::<a class="associatedtype" href="trait.IntoCam16Unclamped.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::cam16::IntoCam16Unclamped::Scalar">Scalar</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Cam16FromUnclamped%3CWpParam,+Xyz%3C%3CWpParam+as+WhitePointParameter%3CT%3E%3E::StaticWp,+T%3E%3E-for-Cam16Qmh%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#643-657">Source</a><a href="#impl-Cam16FromUnclamped%3CWpParam,+Xyz%3C%3CWpParam+as+WhitePointParameter%3CT%3E%3E::StaticWp,+T%3E%3E-for-Cam16Qmh%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<WpParam, T> <a class="trait" href="trait.Cam16FromUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped">Cam16FromUnclamped</a><WpParam, <a class="struct" href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a><<WpParam as <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>>::<a class="associatedtype" href="trait.WhitePointParameter.html#associatedtype.StaticWp" title="type cosmic::cosmic_theme::palette::cam16::WhitePointParameter::StaticWp">StaticWp</a>, T>> for <a class="struct" href="struct.Cam16Qmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qmh">Cam16Qmh</a><T><div class="where">where
|
||||
<a class="struct" href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a><<WpParam as <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>>::<a class="associatedtype" href="trait.WhitePointParameter.html#associatedtype.StaticWp" title="type cosmic::cosmic_theme::palette::cam16::WhitePointParameter::StaticWp">StaticWp</a>, T>: <a class="trait" href="trait.IntoCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::IntoCam16Unclamped">IntoCam16Unclamped</a><WpParam, <a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T>>,
|
||||
WpParam: <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>,</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/cam16/partial.rs.html#643-657">Source</a><a href="#associatedtype.Scalar-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = <<a class="struct" href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a><<WpParam as <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>>::<a class="associatedtype" href="trait.WhitePointParameter.html#associatedtype.StaticWp" title="type cosmic::cosmic_theme::palette::cam16::WhitePointParameter::StaticWp">StaticWp</a>, T> as <a class="trait" href="trait.IntoCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::IntoCam16Unclamped">IntoCam16Unclamped</a><WpParam, <a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T>>>::<a class="associatedtype" href="trait.IntoCam16Unclamped.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::cam16::IntoCam16Unclamped::Scalar">Scalar</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Cam16FromUnclamped%3CWpParam,+Xyz%3C%3CWpParam+as+WhitePointParameter%3CT%3E%3E::StaticWp,+T%3E%3E-for-Cam16Qsh%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/partial.rs.html#663-677">Source</a><a href="#impl-Cam16FromUnclamped%3CWpParam,+Xyz%3C%3CWpParam+as+WhitePointParameter%3CT%3E%3E::StaticWp,+T%3E%3E-for-Cam16Qsh%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<WpParam, T> <a class="trait" href="trait.Cam16FromUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped">Cam16FromUnclamped</a><WpParam, <a class="struct" href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a><<WpParam as <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>>::<a class="associatedtype" href="trait.WhitePointParameter.html#associatedtype.StaticWp" title="type cosmic::cosmic_theme::palette::cam16::WhitePointParameter::StaticWp">StaticWp</a>, T>> for <a class="struct" href="struct.Cam16Qsh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qsh">Cam16Qsh</a><T><div class="where">where
|
||||
<a class="struct" href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a><<WpParam as <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>>::<a class="associatedtype" href="trait.WhitePointParameter.html#associatedtype.StaticWp" title="type cosmic::cosmic_theme::palette::cam16::WhitePointParameter::StaticWp">StaticWp</a>, T>: <a class="trait" href="trait.IntoCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::IntoCam16Unclamped">IntoCam16Unclamped</a><WpParam, <a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T>>,
|
||||
WpParam: <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>,</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/cam16/partial.rs.html#663-677">Source</a><a href="#associatedtype.Scalar-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = <<a class="struct" href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a><<WpParam as <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>>::<a class="associatedtype" href="trait.WhitePointParameter.html#associatedtype.StaticWp" title="type cosmic::cosmic_theme::palette::cam16::WhitePointParameter::StaticWp">StaticWp</a>, T> as <a class="trait" href="trait.IntoCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::IntoCam16Unclamped">IntoCam16Unclamped</a><WpParam, <a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T>>>::<a class="associatedtype" href="trait.IntoCam16Unclamped.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::cam16::IntoCam16Unclamped::Scalar">Scalar</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Cam16FromUnclamped%3CWpParam,+Cam16Jch%3CT%3E%3E-for-Cam16%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/full.rs.html#435">Source</a><a href="#impl-Cam16FromUnclamped%3CWpParam,+Cam16Jch%3CT%3E%3E-for-Cam16%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<WpParam, T> <a class="trait" href="trait.Cam16FromUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped">Cam16FromUnclamped</a><WpParam, <a class="struct" href="struct.Cam16Jch.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jch">Cam16Jch</a><T>> for <a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T><div class="where">where
|
||||
WpParam: <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>,
|
||||
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.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a> + <a class="trait" href="../num/trait.Zero.html" title="trait cosmic::cosmic_theme::palette::num::Zero">Zero</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.Sqrt.html" title="trait cosmic::cosmic_theme::palette::num::Sqrt">Sqrt</a> + <a class="trait" href="../num/trait.PartialCmp.html" title="trait cosmic::cosmic_theme::palette::num::PartialCmp">PartialCmp</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>>::<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><T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../num/trait.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a>>::<a class="associatedtype" href="../num/trait.FromScalar.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::num::FromScalar::Scalar">Scalar</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-8" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/full.rs.html#435">Source</a><a href="#associatedtype.Scalar-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = <T as <a class="trait" href="../num/trait.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a>>::<a class="associatedtype" href="../num/trait.FromScalar.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::num::FromScalar::Scalar">Scalar</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Cam16FromUnclamped%3CWpParam,+Cam16Jmh%3CT%3E%3E-for-Cam16%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/full.rs.html#435">Source</a><a href="#impl-Cam16FromUnclamped%3CWpParam,+Cam16Jmh%3CT%3E%3E-for-Cam16%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<WpParam, T> <a class="trait" href="trait.Cam16FromUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped">Cam16FromUnclamped</a><WpParam, <a class="struct" href="struct.Cam16Jmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jmh">Cam16Jmh</a><T>> for <a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T><div class="where">where
|
||||
WpParam: <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>,
|
||||
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.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a> + <a class="trait" href="../num/trait.Zero.html" title="trait cosmic::cosmic_theme::palette::num::Zero">Zero</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.Sqrt.html" title="trait cosmic::cosmic_theme::palette::num::Sqrt">Sqrt</a> + <a class="trait" href="../num/trait.PartialCmp.html" title="trait cosmic::cosmic_theme::palette::num::PartialCmp">PartialCmp</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>>::<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><T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../num/trait.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a>>::<a class="associatedtype" href="../num/trait.FromScalar.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::num::FromScalar::Scalar">Scalar</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-9" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/full.rs.html#435">Source</a><a href="#associatedtype.Scalar-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = <T as <a class="trait" href="../num/trait.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a>>::<a class="associatedtype" href="../num/trait.FromScalar.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::num::FromScalar::Scalar">Scalar</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Cam16FromUnclamped%3CWpParam,+Cam16Jsh%3CT%3E%3E-for-Cam16%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/full.rs.html#435">Source</a><a href="#impl-Cam16FromUnclamped%3CWpParam,+Cam16Jsh%3CT%3E%3E-for-Cam16%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<WpParam, T> <a class="trait" href="trait.Cam16FromUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped">Cam16FromUnclamped</a><WpParam, <a class="struct" href="struct.Cam16Jsh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jsh">Cam16Jsh</a><T>> for <a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T><div class="where">where
|
||||
WpParam: <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>,
|
||||
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.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a> + <a class="trait" href="../num/trait.Zero.html" title="trait cosmic::cosmic_theme::palette::num::Zero">Zero</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.Sqrt.html" title="trait cosmic::cosmic_theme::palette::num::Sqrt">Sqrt</a> + <a class="trait" href="../num/trait.PartialCmp.html" title="trait cosmic::cosmic_theme::palette::num::PartialCmp">PartialCmp</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>>::<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><T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../num/trait.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a>>::<a class="associatedtype" href="../num/trait.FromScalar.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::num::FromScalar::Scalar">Scalar</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-10" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/full.rs.html#435">Source</a><a href="#associatedtype.Scalar-10" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = <T as <a class="trait" href="../num/trait.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a>>::<a class="associatedtype" href="../num/trait.FromScalar.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::num::FromScalar::Scalar">Scalar</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Cam16FromUnclamped%3CWpParam,+Cam16Qch%3CT%3E%3E-for-Cam16%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/full.rs.html#435">Source</a><a href="#impl-Cam16FromUnclamped%3CWpParam,+Cam16Qch%3CT%3E%3E-for-Cam16%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<WpParam, T> <a class="trait" href="trait.Cam16FromUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped">Cam16FromUnclamped</a><WpParam, <a class="struct" href="struct.Cam16Qch.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qch">Cam16Qch</a><T>> for <a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T><div class="where">where
|
||||
WpParam: <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>,
|
||||
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.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a> + <a class="trait" href="../num/trait.Zero.html" title="trait cosmic::cosmic_theme::palette::num::Zero">Zero</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.Sqrt.html" title="trait cosmic::cosmic_theme::palette::num::Sqrt">Sqrt</a> + <a class="trait" href="../num/trait.PartialCmp.html" title="trait cosmic::cosmic_theme::palette::num::PartialCmp">PartialCmp</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>>::<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><T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../num/trait.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a>>::<a class="associatedtype" href="../num/trait.FromScalar.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::num::FromScalar::Scalar">Scalar</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-11" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/full.rs.html#435">Source</a><a href="#associatedtype.Scalar-11" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = <T as <a class="trait" href="../num/trait.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a>>::<a class="associatedtype" href="../num/trait.FromScalar.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::num::FromScalar::Scalar">Scalar</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Cam16FromUnclamped%3CWpParam,+Cam16Qmh%3CT%3E%3E-for-Cam16%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/full.rs.html#435">Source</a><a href="#impl-Cam16FromUnclamped%3CWpParam,+Cam16Qmh%3CT%3E%3E-for-Cam16%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<WpParam, T> <a class="trait" href="trait.Cam16FromUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped">Cam16FromUnclamped</a><WpParam, <a class="struct" href="struct.Cam16Qmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qmh">Cam16Qmh</a><T>> for <a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T><div class="where">where
|
||||
WpParam: <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>,
|
||||
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.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a> + <a class="trait" href="../num/trait.Zero.html" title="trait cosmic::cosmic_theme::palette::num::Zero">Zero</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.Sqrt.html" title="trait cosmic::cosmic_theme::palette::num::Sqrt">Sqrt</a> + <a class="trait" href="../num/trait.PartialCmp.html" title="trait cosmic::cosmic_theme::palette::num::PartialCmp">PartialCmp</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>>::<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><T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../num/trait.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a>>::<a class="associatedtype" href="../num/trait.FromScalar.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::num::FromScalar::Scalar">Scalar</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-12" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/full.rs.html#435">Source</a><a href="#associatedtype.Scalar-12" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = <T as <a class="trait" href="../num/trait.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a>>::<a class="associatedtype" href="../num/trait.FromScalar.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::num::FromScalar::Scalar">Scalar</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Cam16FromUnclamped%3CWpParam,+Cam16Qsh%3CT%3E%3E-for-Cam16%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/full.rs.html#435">Source</a><a href="#impl-Cam16FromUnclamped%3CWpParam,+Cam16Qsh%3CT%3E%3E-for-Cam16%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<WpParam, T> <a class="trait" href="trait.Cam16FromUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped">Cam16FromUnclamped</a><WpParam, <a class="struct" href="struct.Cam16Qsh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qsh">Cam16Qsh</a><T>> for <a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T><div class="where">where
|
||||
WpParam: <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>,
|
||||
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.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a> + <a class="trait" href="../num/trait.Zero.html" title="trait cosmic::cosmic_theme::palette::num::Zero">Zero</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.Sqrt.html" title="trait cosmic::cosmic_theme::palette::num::Sqrt">Sqrt</a> + <a class="trait" href="../num/trait.PartialCmp.html" title="trait cosmic::cosmic_theme::palette::num::PartialCmp">PartialCmp</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>>::<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><T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../num/trait.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a>>::<a class="associatedtype" href="../num/trait.FromScalar.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::num::FromScalar::Scalar">Scalar</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-13" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/full.rs.html#435">Source</a><a href="#associatedtype.Scalar-13" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = <T as <a class="trait" href="../num/trait.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a>>::<a class="associatedtype" href="../num/trait.FromScalar.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::num::FromScalar::Scalar">Scalar</a></h4></section></div></details></div><script src="../../../../trait.impl/palette/cam16/trait.Cam16FromUnclamped.js" data-ignore-extern-crates="palette" async></script></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
<!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 converting from a CAM16 color type into `C` without clamping."><title>Cam16IntoUnclamped 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="#">Cam16<wbr>Into<wbr>Unclamped</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.cam16_into_unclamped" title="cam16_into_unclamped">cam16_into_unclamped</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">Cam16IntoUnclamped</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.rs.html#135">Source</a> </span></div><pre class="rust item-decl"><code>pub trait Cam16IntoUnclamped<WpParam, C> {
|
||||
type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a>;
|
||||
|
||||
// Required method
|
||||
fn <a href="#tymethod.cam16_into_unclamped" class="fn">cam16_into_unclamped</a>(
|
||||
self,
|
||||
parameters: <a class="struct" href="struct.BakedParameters.html" title="struct cosmic::cosmic_theme::palette::cam16::BakedParameters">BakedParameters</a><WpParam, Self::<a class="associatedtype" href="trait.Cam16IntoUnclamped.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::cam16::Cam16IntoUnclamped::Scalar">Scalar</a>>,
|
||||
) -> C;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A trait for converting from a CAM16 color type into <code>C</code> without clamping.</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/cam16.rs.html#137">Source</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a></h4></section></summary><div class="docblock"><p>The number type that’s used in <code>parameters</code> when converting.</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.cam16_into_unclamped" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16.rs.html#140">Source</a><h4 class="code-header">fn <a href="#tymethod.cam16_into_unclamped" class="fn">cam16_into_unclamped</a>(
|
||||
self,
|
||||
parameters: <a class="struct" href="struct.BakedParameters.html" title="struct cosmic::cosmic_theme::palette::cam16::BakedParameters">BakedParameters</a><WpParam, Self::<a class="associatedtype" href="trait.Cam16IntoUnclamped.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::cam16::Cam16IntoUnclamped::Scalar">Scalar</a>>,
|
||||
) -> C</h4></section></summary><div class="docblock"><p>Converts <code>self</code> into <code>C</code>, using the provided parameters.</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-Cam16IntoUnclamped%3CWpParam,+T%3E-for-U" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16.rs.html#143-145">Source</a><a href="#impl-Cam16IntoUnclamped%3CWpParam,+T%3E-for-U" class="anchor">§</a><h3 class="code-header">impl<WpParam, T, U> <a class="trait" href="trait.Cam16IntoUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16IntoUnclamped">Cam16IntoUnclamped</a><WpParam, T> for U<div class="where">where
|
||||
T: <a class="trait" href="trait.FromCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::FromCam16Unclamped">FromCam16Unclamped</a><WpParam, U>,</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/cam16.rs.html#147">Source</a><a href="#associatedtype.Scalar-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = <T as <a class="trait" href="trait.FromCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::FromCam16Unclamped">FromCam16Unclamped</a><WpParam, U>>::<a class="associatedtype" href="trait.FromCam16Unclamped.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::cam16::FromCam16Unclamped::Scalar">Scalar</a></h4></section></div></details></div><script src="../../../../trait.impl/palette/cam16/trait.Cam16IntoUnclamped.js" async></script></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
<!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 converting from a CAM16 color type `C` without clamping."><title>FromCam16Unclamped 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="#">From<wbr>Cam16<wbr>Unclamped</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.from_cam16_unclamped" title="from_cam16_unclamped">from_cam16_unclamped</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::<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">FromCam16Unclamped</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.rs.html#126">Source</a> </span></div><pre class="rust item-decl"><code>pub trait FromCam16Unclamped<WpParam, C> {
|
||||
type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a>;
|
||||
|
||||
// Required method
|
||||
fn <a href="#tymethod.from_cam16_unclamped" class="fn">from_cam16_unclamped</a>(
|
||||
cam16: C,
|
||||
parameters: <a class="struct" href="struct.BakedParameters.html" title="struct cosmic::cosmic_theme::palette::cam16::BakedParameters">BakedParameters</a><WpParam, Self::<a class="associatedtype" href="trait.FromCam16Unclamped.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::cam16::FromCam16Unclamped::Scalar">Scalar</a>>,
|
||||
) -> Self;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A trait for converting from a CAM16 color type <code>C</code> without clamping.</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/cam16.rs.html#128">Source</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a></h4></section></summary><div class="docblock"><p>The number type that’s used in <code>parameters</code> when converting.</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.from_cam16_unclamped" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16.rs.html#131">Source</a><h4 class="code-header">fn <a href="#tymethod.from_cam16_unclamped" class="fn">from_cam16_unclamped</a>(
|
||||
cam16: C,
|
||||
parameters: <a class="struct" href="struct.BakedParameters.html" title="struct cosmic::cosmic_theme::palette::cam16::BakedParameters">BakedParameters</a><WpParam, Self::<a class="associatedtype" href="trait.FromCam16Unclamped.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::cam16::FromCam16Unclamped::Scalar">Scalar</a>>,
|
||||
) -> Self</h4></section></summary><div class="docblock"><p>Converts <code>cam16</code> into <code>Self</code>, using the provided parameters.</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-FromCam16Unclamped%3CWpParam,+Cam16%3CT%3E%3E-for-Xyz%3C%3CWpParam+as+WhitePointParameter%3CT%3E%3E::StaticWp,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/xyz.rs.html#329-333">Source</a><a href="#impl-FromCam16Unclamped%3CWpParam,+Cam16%3CT%3E%3E-for-Xyz%3C%3CWpParam+as+WhitePointParameter%3CT%3E%3E::StaticWp,+T%3E" class="anchor">§</a><h3 class="code-header">impl<WpParam, T> <a class="trait" href="trait.FromCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::FromCam16Unclamped">FromCam16Unclamped</a><WpParam, <a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T>> for <a class="struct" href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a><<WpParam as <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>>::<a class="associatedtype" href="trait.WhitePointParameter.html#associatedtype.StaticWp" title="type cosmic::cosmic_theme::palette::cam16::WhitePointParameter::StaticWp">StaticWp</a>, T><div class="where">where
|
||||
WpParam: <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>,
|
||||
T: <a class="trait" href="../num/trait.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a>,
|
||||
<a class="struct" href="struct.Cam16Jch.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jch">Cam16Jch</a><T>: <a class="trait" href="trait.Cam16IntoUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16IntoUnclamped">Cam16IntoUnclamped</a><WpParam, <a class="struct" href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a><<WpParam as <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>>::<a class="associatedtype" href="trait.WhitePointParameter.html#associatedtype.StaticWp" title="type cosmic::cosmic_theme::palette::cam16::WhitePointParameter::StaticWp">StaticWp</a>, T>, Scalar = <T as <a class="trait" href="../num/trait.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a>>::<a class="associatedtype" href="../num/trait.FromScalar.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::num::FromScalar::Scalar">Scalar</a>>,</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/xyz.rs.html#335">Source</a><a href="#associatedtype.Scalar-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = <T as <a class="trait" href="../num/trait.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a>>::<a class="associatedtype" href="../num/trait.FromScalar.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::num::FromScalar::Scalar">Scalar</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromCam16Unclamped%3CWpParam,+Cam16Jch%3CT%3E%3E-for-Xyz%3C%3CWpParam+as+WhitePointParameter%3CT%3E%3E::StaticWp,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/xyz.rs.html#382">Source</a><a href="#impl-FromCam16Unclamped%3CWpParam,+Cam16Jch%3CT%3E%3E-for-Xyz%3C%3CWpParam+as+WhitePointParameter%3CT%3E%3E::StaticWp,+T%3E" class="anchor">§</a><h3 class="code-header">impl<WpParam, T> <a class="trait" href="trait.FromCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::FromCam16Unclamped">FromCam16Unclamped</a><WpParam, <a class="struct" href="struct.Cam16Jch.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jch">Cam16Jch</a><T>> for <a class="struct" href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a><<WpParam as <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>>::<a class="associatedtype" href="trait.WhitePointParameter.html#associatedtype.StaticWp" title="type cosmic::cosmic_theme::palette::cam16::WhitePointParameter::StaticWp">StaticWp</a>, T><div class="where">where
|
||||
WpParam: <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>,
|
||||
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.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a> + <a class="trait" href="../num/trait.One.html" title="trait cosmic::cosmic_theme::palette::num::One">One</a> + <a class="trait" href="../num/trait.Zero.html" title="trait cosmic::cosmic_theme::palette::num::Zero">Zero</a> + <a class="trait" href="../num/trait.Sqrt.html" title="trait cosmic::cosmic_theme::palette::num::Sqrt">Sqrt</a> + <a class="trait" href="../num/trait.Powf.html" title="trait cosmic::cosmic_theme::palette::num::Powf">Powf</a> + <a class="trait" href="../num/trait.Abs.html" title="trait cosmic::cosmic_theme::palette::num::Abs">Abs</a> + <a class="trait" href="../num/trait.Signum.html" title="trait cosmic::cosmic_theme::palette::num::Signum">Signum</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.Trigonometry.html" title="trait cosmic::cosmic_theme::palette::num::Trigonometry">Trigonometry</a> + <a class="trait" href="../angle/trait.RealAngle.html" title="trait cosmic::cosmic_theme::palette::angle::RealAngle">RealAngle</a> + <a class="trait" href="../angle/trait.SignedAngle.html" title="trait cosmic::cosmic_theme::palette::angle::SignedAngle">SignedAngle</a> + <a class="trait" href="../num/trait.PartialCmp.html" title="trait cosmic::cosmic_theme::palette::num::PartialCmp">PartialCmp</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>>::<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><T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../num/trait.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a>>::<a class="associatedtype" href="../num/trait.FromScalar.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::num::FromScalar::Scalar">Scalar</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-2" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/xyz.rs.html#382">Source</a><a href="#associatedtype.Scalar-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = <T as <a class="trait" href="../num/trait.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a>>::<a class="associatedtype" href="../num/trait.FromScalar.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::num::FromScalar::Scalar">Scalar</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromCam16Unclamped%3CWpParam,+Cam16Jch%3CT%3E%3E-for-Cam16%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/full.rs.html#435">Source</a><a href="#impl-FromCam16Unclamped%3CWpParam,+Cam16Jch%3CT%3E%3E-for-Cam16%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<WpParam, T> <a class="trait" href="trait.FromCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::FromCam16Unclamped">FromCam16Unclamped</a><WpParam, <a class="struct" href="struct.Cam16Jch.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jch">Cam16Jch</a><T>> for <a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T><div class="where">where
|
||||
<a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T>: <a class="trait" href="trait.Cam16FromUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped">Cam16FromUnclamped</a><WpParam, <a class="struct" href="struct.Cam16Jch.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jch">Cam16Jch</a><T>>,</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/cam16/full.rs.html#435">Source</a><a href="#associatedtype.Scalar-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = <<a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T> as <a class="trait" href="trait.Cam16FromUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped">Cam16FromUnclamped</a><WpParam, <a class="struct" href="struct.Cam16Jch.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jch">Cam16Jch</a><T>>>::<a class="associatedtype" href="trait.Cam16FromUnclamped.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped::Scalar">Scalar</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromCam16Unclamped%3CWpParam,+Cam16Jmh%3CT%3E%3E-for-Xyz%3C%3CWpParam+as+WhitePointParameter%3CT%3E%3E::StaticWp,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/xyz.rs.html#382">Source</a><a href="#impl-FromCam16Unclamped%3CWpParam,+Cam16Jmh%3CT%3E%3E-for-Xyz%3C%3CWpParam+as+WhitePointParameter%3CT%3E%3E::StaticWp,+T%3E" class="anchor">§</a><h3 class="code-header">impl<WpParam, T> <a class="trait" href="trait.FromCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::FromCam16Unclamped">FromCam16Unclamped</a><WpParam, <a class="struct" href="struct.Cam16Jmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jmh">Cam16Jmh</a><T>> for <a class="struct" href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a><<WpParam as <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>>::<a class="associatedtype" href="trait.WhitePointParameter.html#associatedtype.StaticWp" title="type cosmic::cosmic_theme::palette::cam16::WhitePointParameter::StaticWp">StaticWp</a>, T><div class="where">where
|
||||
WpParam: <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>,
|
||||
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.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a> + <a class="trait" href="../num/trait.One.html" title="trait cosmic::cosmic_theme::palette::num::One">One</a> + <a class="trait" href="../num/trait.Zero.html" title="trait cosmic::cosmic_theme::palette::num::Zero">Zero</a> + <a class="trait" href="../num/trait.Sqrt.html" title="trait cosmic::cosmic_theme::palette::num::Sqrt">Sqrt</a> + <a class="trait" href="../num/trait.Powf.html" title="trait cosmic::cosmic_theme::palette::num::Powf">Powf</a> + <a class="trait" href="../num/trait.Abs.html" title="trait cosmic::cosmic_theme::palette::num::Abs">Abs</a> + <a class="trait" href="../num/trait.Signum.html" title="trait cosmic::cosmic_theme::palette::num::Signum">Signum</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.Trigonometry.html" title="trait cosmic::cosmic_theme::palette::num::Trigonometry">Trigonometry</a> + <a class="trait" href="../angle/trait.RealAngle.html" title="trait cosmic::cosmic_theme::palette::angle::RealAngle">RealAngle</a> + <a class="trait" href="../angle/trait.SignedAngle.html" title="trait cosmic::cosmic_theme::palette::angle::SignedAngle">SignedAngle</a> + <a class="trait" href="../num/trait.PartialCmp.html" title="trait cosmic::cosmic_theme::palette::num::PartialCmp">PartialCmp</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>>::<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><T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../num/trait.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a>>::<a class="associatedtype" href="../num/trait.FromScalar.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::num::FromScalar::Scalar">Scalar</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-4" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/xyz.rs.html#382">Source</a><a href="#associatedtype.Scalar-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = <T as <a class="trait" href="../num/trait.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a>>::<a class="associatedtype" href="../num/trait.FromScalar.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::num::FromScalar::Scalar">Scalar</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromCam16Unclamped%3CWpParam,+Cam16Jmh%3CT%3E%3E-for-Cam16%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/full.rs.html#435">Source</a><a href="#impl-FromCam16Unclamped%3CWpParam,+Cam16Jmh%3CT%3E%3E-for-Cam16%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<WpParam, T> <a class="trait" href="trait.FromCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::FromCam16Unclamped">FromCam16Unclamped</a><WpParam, <a class="struct" href="struct.Cam16Jmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jmh">Cam16Jmh</a><T>> for <a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T><div class="where">where
|
||||
<a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T>: <a class="trait" href="trait.Cam16FromUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped">Cam16FromUnclamped</a><WpParam, <a class="struct" href="struct.Cam16Jmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jmh">Cam16Jmh</a><T>>,</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/cam16/full.rs.html#435">Source</a><a href="#associatedtype.Scalar-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = <<a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T> as <a class="trait" href="trait.Cam16FromUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped">Cam16FromUnclamped</a><WpParam, <a class="struct" href="struct.Cam16Jmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jmh">Cam16Jmh</a><T>>>::<a class="associatedtype" href="trait.Cam16FromUnclamped.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped::Scalar">Scalar</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromCam16Unclamped%3CWpParam,+Cam16Jsh%3CT%3E%3E-for-Xyz%3C%3CWpParam+as+WhitePointParameter%3CT%3E%3E::StaticWp,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/xyz.rs.html#382">Source</a><a href="#impl-FromCam16Unclamped%3CWpParam,+Cam16Jsh%3CT%3E%3E-for-Xyz%3C%3CWpParam+as+WhitePointParameter%3CT%3E%3E::StaticWp,+T%3E" class="anchor">§</a><h3 class="code-header">impl<WpParam, T> <a class="trait" href="trait.FromCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::FromCam16Unclamped">FromCam16Unclamped</a><WpParam, <a class="struct" href="struct.Cam16Jsh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jsh">Cam16Jsh</a><T>> for <a class="struct" href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a><<WpParam as <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>>::<a class="associatedtype" href="trait.WhitePointParameter.html#associatedtype.StaticWp" title="type cosmic::cosmic_theme::palette::cam16::WhitePointParameter::StaticWp">StaticWp</a>, T><div class="where">where
|
||||
WpParam: <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>,
|
||||
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.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a> + <a class="trait" href="../num/trait.One.html" title="trait cosmic::cosmic_theme::palette::num::One">One</a> + <a class="trait" href="../num/trait.Zero.html" title="trait cosmic::cosmic_theme::palette::num::Zero">Zero</a> + <a class="trait" href="../num/trait.Sqrt.html" title="trait cosmic::cosmic_theme::palette::num::Sqrt">Sqrt</a> + <a class="trait" href="../num/trait.Powf.html" title="trait cosmic::cosmic_theme::palette::num::Powf">Powf</a> + <a class="trait" href="../num/trait.Abs.html" title="trait cosmic::cosmic_theme::palette::num::Abs">Abs</a> + <a class="trait" href="../num/trait.Signum.html" title="trait cosmic::cosmic_theme::palette::num::Signum">Signum</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.Trigonometry.html" title="trait cosmic::cosmic_theme::palette::num::Trigonometry">Trigonometry</a> + <a class="trait" href="../angle/trait.RealAngle.html" title="trait cosmic::cosmic_theme::palette::angle::RealAngle">RealAngle</a> + <a class="trait" href="../angle/trait.SignedAngle.html" title="trait cosmic::cosmic_theme::palette::angle::SignedAngle">SignedAngle</a> + <a class="trait" href="../num/trait.PartialCmp.html" title="trait cosmic::cosmic_theme::palette::num::PartialCmp">PartialCmp</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>>::<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><T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../num/trait.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a>>::<a class="associatedtype" href="../num/trait.FromScalar.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::num::FromScalar::Scalar">Scalar</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-6" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/xyz.rs.html#382">Source</a><a href="#associatedtype.Scalar-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = <T as <a class="trait" href="../num/trait.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a>>::<a class="associatedtype" href="../num/trait.FromScalar.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::num::FromScalar::Scalar">Scalar</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromCam16Unclamped%3CWpParam,+Cam16Jsh%3CT%3E%3E-for-Cam16%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/full.rs.html#435">Source</a><a href="#impl-FromCam16Unclamped%3CWpParam,+Cam16Jsh%3CT%3E%3E-for-Cam16%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<WpParam, T> <a class="trait" href="trait.FromCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::FromCam16Unclamped">FromCam16Unclamped</a><WpParam, <a class="struct" href="struct.Cam16Jsh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jsh">Cam16Jsh</a><T>> for <a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T><div class="where">where
|
||||
<a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T>: <a class="trait" href="trait.Cam16FromUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped">Cam16FromUnclamped</a><WpParam, <a class="struct" href="struct.Cam16Jsh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jsh">Cam16Jsh</a><T>>,</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/cam16/full.rs.html#435">Source</a><a href="#associatedtype.Scalar-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = <<a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T> as <a class="trait" href="trait.Cam16FromUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped">Cam16FromUnclamped</a><WpParam, <a class="struct" href="struct.Cam16Jsh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jsh">Cam16Jsh</a><T>>>::<a class="associatedtype" href="trait.Cam16FromUnclamped.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped::Scalar">Scalar</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromCam16Unclamped%3CWpParam,+Cam16Qch%3CT%3E%3E-for-Xyz%3C%3CWpParam+as+WhitePointParameter%3CT%3E%3E::StaticWp,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/xyz.rs.html#382">Source</a><a href="#impl-FromCam16Unclamped%3CWpParam,+Cam16Qch%3CT%3E%3E-for-Xyz%3C%3CWpParam+as+WhitePointParameter%3CT%3E%3E::StaticWp,+T%3E" class="anchor">§</a><h3 class="code-header">impl<WpParam, T> <a class="trait" href="trait.FromCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::FromCam16Unclamped">FromCam16Unclamped</a><WpParam, <a class="struct" href="struct.Cam16Qch.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qch">Cam16Qch</a><T>> for <a class="struct" href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a><<WpParam as <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>>::<a class="associatedtype" href="trait.WhitePointParameter.html#associatedtype.StaticWp" title="type cosmic::cosmic_theme::palette::cam16::WhitePointParameter::StaticWp">StaticWp</a>, T><div class="where">where
|
||||
WpParam: <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>,
|
||||
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.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a> + <a class="trait" href="../num/trait.One.html" title="trait cosmic::cosmic_theme::palette::num::One">One</a> + <a class="trait" href="../num/trait.Zero.html" title="trait cosmic::cosmic_theme::palette::num::Zero">Zero</a> + <a class="trait" href="../num/trait.Sqrt.html" title="trait cosmic::cosmic_theme::palette::num::Sqrt">Sqrt</a> + <a class="trait" href="../num/trait.Powf.html" title="trait cosmic::cosmic_theme::palette::num::Powf">Powf</a> + <a class="trait" href="../num/trait.Abs.html" title="trait cosmic::cosmic_theme::palette::num::Abs">Abs</a> + <a class="trait" href="../num/trait.Signum.html" title="trait cosmic::cosmic_theme::palette::num::Signum">Signum</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.Trigonometry.html" title="trait cosmic::cosmic_theme::palette::num::Trigonometry">Trigonometry</a> + <a class="trait" href="../angle/trait.RealAngle.html" title="trait cosmic::cosmic_theme::palette::angle::RealAngle">RealAngle</a> + <a class="trait" href="../angle/trait.SignedAngle.html" title="trait cosmic::cosmic_theme::palette::angle::SignedAngle">SignedAngle</a> + <a class="trait" href="../num/trait.PartialCmp.html" title="trait cosmic::cosmic_theme::palette::num::PartialCmp">PartialCmp</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>>::<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><T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../num/trait.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a>>::<a class="associatedtype" href="../num/trait.FromScalar.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::num::FromScalar::Scalar">Scalar</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-8" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/xyz.rs.html#382">Source</a><a href="#associatedtype.Scalar-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = <T as <a class="trait" href="../num/trait.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a>>::<a class="associatedtype" href="../num/trait.FromScalar.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::num::FromScalar::Scalar">Scalar</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromCam16Unclamped%3CWpParam,+Cam16Qch%3CT%3E%3E-for-Cam16%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/full.rs.html#435">Source</a><a href="#impl-FromCam16Unclamped%3CWpParam,+Cam16Qch%3CT%3E%3E-for-Cam16%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<WpParam, T> <a class="trait" href="trait.FromCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::FromCam16Unclamped">FromCam16Unclamped</a><WpParam, <a class="struct" href="struct.Cam16Qch.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qch">Cam16Qch</a><T>> for <a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T><div class="where">where
|
||||
<a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T>: <a class="trait" href="trait.Cam16FromUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped">Cam16FromUnclamped</a><WpParam, <a class="struct" href="struct.Cam16Qch.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qch">Cam16Qch</a><T>>,</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/cam16/full.rs.html#435">Source</a><a href="#associatedtype.Scalar-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = <<a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T> as <a class="trait" href="trait.Cam16FromUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped">Cam16FromUnclamped</a><WpParam, <a class="struct" href="struct.Cam16Qch.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qch">Cam16Qch</a><T>>>::<a class="associatedtype" href="trait.Cam16FromUnclamped.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped::Scalar">Scalar</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromCam16Unclamped%3CWpParam,+Cam16Qmh%3CT%3E%3E-for-Xyz%3C%3CWpParam+as+WhitePointParameter%3CT%3E%3E::StaticWp,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/xyz.rs.html#382">Source</a><a href="#impl-FromCam16Unclamped%3CWpParam,+Cam16Qmh%3CT%3E%3E-for-Xyz%3C%3CWpParam+as+WhitePointParameter%3CT%3E%3E::StaticWp,+T%3E" class="anchor">§</a><h3 class="code-header">impl<WpParam, T> <a class="trait" href="trait.FromCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::FromCam16Unclamped">FromCam16Unclamped</a><WpParam, <a class="struct" href="struct.Cam16Qmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qmh">Cam16Qmh</a><T>> for <a class="struct" href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a><<WpParam as <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>>::<a class="associatedtype" href="trait.WhitePointParameter.html#associatedtype.StaticWp" title="type cosmic::cosmic_theme::palette::cam16::WhitePointParameter::StaticWp">StaticWp</a>, T><div class="where">where
|
||||
WpParam: <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>,
|
||||
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.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a> + <a class="trait" href="../num/trait.One.html" title="trait cosmic::cosmic_theme::palette::num::One">One</a> + <a class="trait" href="../num/trait.Zero.html" title="trait cosmic::cosmic_theme::palette::num::Zero">Zero</a> + <a class="trait" href="../num/trait.Sqrt.html" title="trait cosmic::cosmic_theme::palette::num::Sqrt">Sqrt</a> + <a class="trait" href="../num/trait.Powf.html" title="trait cosmic::cosmic_theme::palette::num::Powf">Powf</a> + <a class="trait" href="../num/trait.Abs.html" title="trait cosmic::cosmic_theme::palette::num::Abs">Abs</a> + <a class="trait" href="../num/trait.Signum.html" title="trait cosmic::cosmic_theme::palette::num::Signum">Signum</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.Trigonometry.html" title="trait cosmic::cosmic_theme::palette::num::Trigonometry">Trigonometry</a> + <a class="trait" href="../angle/trait.RealAngle.html" title="trait cosmic::cosmic_theme::palette::angle::RealAngle">RealAngle</a> + <a class="trait" href="../angle/trait.SignedAngle.html" title="trait cosmic::cosmic_theme::palette::angle::SignedAngle">SignedAngle</a> + <a class="trait" href="../num/trait.PartialCmp.html" title="trait cosmic::cosmic_theme::palette::num::PartialCmp">PartialCmp</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>>::<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><T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../num/trait.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a>>::<a class="associatedtype" href="../num/trait.FromScalar.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::num::FromScalar::Scalar">Scalar</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-10" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/xyz.rs.html#382">Source</a><a href="#associatedtype.Scalar-10" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = <T as <a class="trait" href="../num/trait.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a>>::<a class="associatedtype" href="../num/trait.FromScalar.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::num::FromScalar::Scalar">Scalar</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromCam16Unclamped%3CWpParam,+Cam16Qmh%3CT%3E%3E-for-Cam16%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/full.rs.html#435">Source</a><a href="#impl-FromCam16Unclamped%3CWpParam,+Cam16Qmh%3CT%3E%3E-for-Cam16%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<WpParam, T> <a class="trait" href="trait.FromCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::FromCam16Unclamped">FromCam16Unclamped</a><WpParam, <a class="struct" href="struct.Cam16Qmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qmh">Cam16Qmh</a><T>> for <a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T><div class="where">where
|
||||
<a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T>: <a class="trait" href="trait.Cam16FromUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped">Cam16FromUnclamped</a><WpParam, <a class="struct" href="struct.Cam16Qmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qmh">Cam16Qmh</a><T>>,</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/cam16/full.rs.html#435">Source</a><a href="#associatedtype.Scalar-11" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = <<a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T> as <a class="trait" href="trait.Cam16FromUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped">Cam16FromUnclamped</a><WpParam, <a class="struct" href="struct.Cam16Qmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qmh">Cam16Qmh</a><T>>>::<a class="associatedtype" href="trait.Cam16FromUnclamped.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped::Scalar">Scalar</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromCam16Unclamped%3CWpParam,+Cam16Qsh%3CT%3E%3E-for-Xyz%3C%3CWpParam+as+WhitePointParameter%3CT%3E%3E::StaticWp,+T%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/xyz.rs.html#382">Source</a><a href="#impl-FromCam16Unclamped%3CWpParam,+Cam16Qsh%3CT%3E%3E-for-Xyz%3C%3CWpParam+as+WhitePointParameter%3CT%3E%3E::StaticWp,+T%3E" class="anchor">§</a><h3 class="code-header">impl<WpParam, T> <a class="trait" href="trait.FromCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::FromCam16Unclamped">FromCam16Unclamped</a><WpParam, <a class="struct" href="struct.Cam16Qsh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qsh">Cam16Qsh</a><T>> for <a class="struct" href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a><<WpParam as <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>>::<a class="associatedtype" href="trait.WhitePointParameter.html#associatedtype.StaticWp" title="type cosmic::cosmic_theme::palette::cam16::WhitePointParameter::StaticWp">StaticWp</a>, T><div class="where">where
|
||||
WpParam: <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T>,
|
||||
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.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a> + <a class="trait" href="../num/trait.One.html" title="trait cosmic::cosmic_theme::palette::num::One">One</a> + <a class="trait" href="../num/trait.Zero.html" title="trait cosmic::cosmic_theme::palette::num::Zero">Zero</a> + <a class="trait" href="../num/trait.Sqrt.html" title="trait cosmic::cosmic_theme::palette::num::Sqrt">Sqrt</a> + <a class="trait" href="../num/trait.Powf.html" title="trait cosmic::cosmic_theme::palette::num::Powf">Powf</a> + <a class="trait" href="../num/trait.Abs.html" title="trait cosmic::cosmic_theme::palette::num::Abs">Abs</a> + <a class="trait" href="../num/trait.Signum.html" title="trait cosmic::cosmic_theme::palette::num::Signum">Signum</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.Trigonometry.html" title="trait cosmic::cosmic_theme::palette::num::Trigonometry">Trigonometry</a> + <a class="trait" href="../angle/trait.RealAngle.html" title="trait cosmic::cosmic_theme::palette::angle::RealAngle">RealAngle</a> + <a class="trait" href="../angle/trait.SignedAngle.html" title="trait cosmic::cosmic_theme::palette::angle::SignedAngle">SignedAngle</a> + <a class="trait" href="../num/trait.PartialCmp.html" title="trait cosmic::cosmic_theme::palette::num::PartialCmp">PartialCmp</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../bool_mask/trait.HasBoolMask.html" title="trait cosmic::cosmic_theme::palette::bool_mask::HasBoolMask">HasBoolMask</a>>::<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><T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
||||
<T as <a class="trait" href="../num/trait.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a>>::<a class="associatedtype" href="../num/trait.FromScalar.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::num::FromScalar::Scalar">Scalar</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Scalar-12" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/xyz.rs.html#382">Source</a><a href="#associatedtype.Scalar-12" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = <T as <a class="trait" href="../num/trait.FromScalar.html" title="trait cosmic::cosmic_theme::palette::num::FromScalar">FromScalar</a>>::<a class="associatedtype" href="../num/trait.FromScalar.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::num::FromScalar::Scalar">Scalar</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromCam16Unclamped%3CWpParam,+Cam16Qsh%3CT%3E%3E-for-Cam16%3CT%3E" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16/full.rs.html#435">Source</a><a href="#impl-FromCam16Unclamped%3CWpParam,+Cam16Qsh%3CT%3E%3E-for-Cam16%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<WpParam, T> <a class="trait" href="trait.FromCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::FromCam16Unclamped">FromCam16Unclamped</a><WpParam, <a class="struct" href="struct.Cam16Qsh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qsh">Cam16Qsh</a><T>> for <a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T><div class="where">where
|
||||
<a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T>: <a class="trait" href="trait.Cam16FromUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped">Cam16FromUnclamped</a><WpParam, <a class="struct" href="struct.Cam16Qsh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qsh">Cam16Qsh</a><T>>,</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/cam16/full.rs.html#435">Source</a><a href="#associatedtype.Scalar-13" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = <<a class="struct" href="struct.Cam16.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16">Cam16</a><T> as <a class="trait" href="trait.Cam16FromUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped">Cam16FromUnclamped</a><WpParam, <a class="struct" href="struct.Cam16Qsh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qsh">Cam16Qsh</a><T>>>::<a class="associatedtype" href="trait.Cam16FromUnclamped.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped::Scalar">Scalar</a></h4></section></div></details></div><script src="../../../../trait.impl/palette/cam16/trait.FromCam16Unclamped.js" data-ignore-extern-crates="palette" async></script></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
<!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 converting into a CAM16 color type `C` without clamping."><title>IntoCam16Unclamped 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="#">Into<wbr>Cam16<wbr>Unclamped</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.into_cam16_unclamped" title="into_cam16_unclamped">into_cam16_unclamped</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">IntoCam16Unclamped</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.rs.html#106">Source</a> </span></div><pre class="rust item-decl"><code>pub trait IntoCam16Unclamped<WpParam, C> {
|
||||
type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a>;
|
||||
|
||||
// Required method
|
||||
fn <a href="#tymethod.into_cam16_unclamped" class="fn">into_cam16_unclamped</a>(
|
||||
self,
|
||||
parameters: <a class="struct" href="struct.BakedParameters.html" title="struct cosmic::cosmic_theme::palette::cam16::BakedParameters">BakedParameters</a><WpParam, Self::<a class="associatedtype" href="trait.IntoCam16Unclamped.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::cam16::IntoCam16Unclamped::Scalar">Scalar</a>>,
|
||||
) -> C;
|
||||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A trait for converting into a CAM16 color type <code>C</code> without clamping.</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/cam16.rs.html#108">Source</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a></h4></section></summary><div class="docblock"><p>The number type that’s used in <code>parameters</code> when converting.</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_cam16_unclamped" class="method"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16.rs.html#111">Source</a><h4 class="code-header">fn <a href="#tymethod.into_cam16_unclamped" class="fn">into_cam16_unclamped</a>(
|
||||
self,
|
||||
parameters: <a class="struct" href="struct.BakedParameters.html" title="struct cosmic::cosmic_theme::palette::cam16::BakedParameters">BakedParameters</a><WpParam, Self::<a class="associatedtype" href="trait.IntoCam16Unclamped.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::cam16::IntoCam16Unclamped::Scalar">Scalar</a>>,
|
||||
) -> C</h4></section></summary><div class="docblock"><p>Converts <code>self</code> into <code>C</code>, using the provided parameters.</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-IntoCam16Unclamped%3CWpParam,+T%3E-for-U" class="impl"><a class="src rightside" href="https://docs.rs/palette/0.7.6/src/palette/cam16.rs.html#114-116">Source</a><a href="#impl-IntoCam16Unclamped%3CWpParam,+T%3E-for-U" class="anchor">§</a><h3 class="code-header">impl<WpParam, T, U> <a class="trait" href="trait.IntoCam16Unclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::IntoCam16Unclamped">IntoCam16Unclamped</a><WpParam, T> for U<div class="where">where
|
||||
T: <a class="trait" href="trait.Cam16FromUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped">Cam16FromUnclamped</a><WpParam, U>,</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/cam16.rs.html#118">Source</a><a href="#associatedtype.Scalar-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Scalar" class="associatedtype">Scalar</a> = <T as <a class="trait" href="trait.Cam16FromUnclamped.html" title="trait cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped">Cam16FromUnclamped</a><WpParam, U>>::<a class="associatedtype" href="trait.Cam16FromUnclamped.html#associatedtype.Scalar" title="type cosmic::cosmic_theme::palette::cam16::Cam16FromUnclamped::Scalar">Scalar</a></h4></section></div></details></div><script src="../../../../trait.impl/palette/cam16/trait.IntoCam16Unclamped.js" async></script></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
<!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<T> {
|
||||
type <a href="#associatedtype.StaticWp" class="associatedtype">StaticWp</a>;
|
||||
|
||||
// Required method
|
||||
fn <a href="#tymethod.into_xyz" class="fn">into_xyz</a>(self) -> <a class="struct" href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a><<a class="struct" href="../white_point/struct.Any.html" title="struct cosmic::cosmic_theme::palette::white_point::Any">Any</a>, T>;
|
||||
}</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 it’s 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) -> <a class="struct" href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a><<a class="struct" href="../white_point/struct.Any.html" title="struct cosmic::cosmic_theme::palette::white_point::Any">Any</a>, T></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<T> <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T> for <a class="struct" href="../struct.Xyz.html" title="struct cosmic::cosmic_theme::palette::Xyz">Xyz</a><<a class="struct" href="../white_point/struct.Any.html" title="struct cosmic::cosmic_theme::palette::white_point::Any">Any</a>, T></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<T, Wp> <a class="trait" href="trait.WhitePointParameter.html" title="trait cosmic::cosmic_theme::palette::cam16::WhitePointParameter">WhitePointParameter</a><T> for <a class="struct" href="struct.StaticWp.html" title="struct cosmic::cosmic_theme::palette::cam16::StaticWp">StaticWp</a><Wp><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><T>,</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>
|
||||
9
cosmic/cosmic_theme/palette/cam16/type.Cam16Jcha.html
Normal file
9
cosmic/cosmic_theme/palette/cam16/type.Cam16Jcha.html
Normal 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="Partial CIE CAM16 with lightness, chroma, and an alpha component."><title>Cam16Jcha 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 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="#">Cam16<wbr>Jcha</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>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>Type Alias <span class="type">Cam16Jcha</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/partial.rs.html#553">Source</a> </span></div><pre class="rust item-decl"><code>pub type Cam16Jcha<T> = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><<a class="struct" href="struct.Cam16Jch.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jch">Cam16Jch</a><T>, T>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Partial CIE CAM16 with lightness, chroma, and an alpha component.</p>
|
||||
<p>See the <a href="../struct.Alpha.html#Cam16Jcha" title="struct cosmic::cosmic_theme::palette::Alpha"><code>Cam16Jcha</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 Cam16Jcha<T> {
|
||||
pub color: <a class="struct" href="struct.Cam16Jch.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jch">Cam16Jch</a><T>,
|
||||
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.Cam16Jch.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jch">Cam16Jch</a><T></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::cam16::Cam16Jcha" async></script></section></div></main></body></html>
|
||||
9
cosmic/cosmic_theme/palette/cam16/type.Cam16Jmha.html
Normal file
9
cosmic/cosmic_theme/palette/cam16/type.Cam16Jmha.html
Normal 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="Partial CIE CAM16 with lightness, colorfulness, and an alpha component."><title>Cam16Jmha 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 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="#">Cam16<wbr>Jmha</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>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>Type Alias <span class="type">Cam16Jmha</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/partial.rs.html#572">Source</a> </span></div><pre class="rust item-decl"><code>pub type Cam16Jmha<T> = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><<a class="struct" href="struct.Cam16Jmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jmh">Cam16Jmh</a><T>, T>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Partial CIE CAM16 with lightness, colorfulness, and an alpha component.</p>
|
||||
<p>See the <a href="../struct.Alpha.html#Cam16Jmha" title="struct cosmic::cosmic_theme::palette::Alpha"><code>Cam16Jmha</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 Cam16Jmha<T> {
|
||||
pub color: <a class="struct" href="struct.Cam16Jmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jmh">Cam16Jmh</a><T>,
|
||||
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.Cam16Jmh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jmh">Cam16Jmh</a><T></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::cam16::Cam16Jmha" async></script></section></div></main></body></html>
|
||||
9
cosmic/cosmic_theme/palette/cam16/type.Cam16Jsha.html
Normal file
9
cosmic/cosmic_theme/palette/cam16/type.Cam16Jsha.html
Normal 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="Partial CIE CAM16 with lightness, saturation, and an alpha component."><title>Cam16Jsha 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 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="#">Cam16<wbr>Jsha</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>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>Type Alias <span class="type">Cam16Jsha</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/partial.rs.html#603">Source</a> </span></div><pre class="rust item-decl"><code>pub type Cam16Jsha<T> = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><<a class="struct" href="struct.Cam16Jsh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jsh">Cam16Jsh</a><T>, T>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Partial CIE CAM16 with lightness, saturation, and an alpha component.</p>
|
||||
<p>See the <a href="../struct.Alpha.html#Cam16Jsha" title="struct cosmic::cosmic_theme::palette::Alpha"><code>Cam16Jsha</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 Cam16Jsha<T> {
|
||||
pub color: <a class="struct" href="struct.Cam16Jsh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jsh">Cam16Jsh</a><T>,
|
||||
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.Cam16Jsh.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Jsh">Cam16Jsh</a><T></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::cam16::Cam16Jsha" async></script></section></div></main></body></html>
|
||||
9
cosmic/cosmic_theme/palette/cam16/type.Cam16Qcha.html
Normal file
9
cosmic/cosmic_theme/palette/cam16/type.Cam16Qcha.html
Normal 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="Partial CIE CAM16 with brightness, chroma, and an alpha component."><title>Cam16Qcha 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 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="#">Cam16<wbr>Qcha</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>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>Type Alias <span class="type">Cam16Qcha</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/partial.rs.html#623">Source</a> </span></div><pre class="rust item-decl"><code>pub type Cam16Qcha<T> = <a class="struct" href="../struct.Alpha.html" title="struct cosmic::cosmic_theme::palette::Alpha">Alpha</a><<a class="struct" href="struct.Cam16Qch.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qch">Cam16Qch</a><T>, T>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Partial CIE CAM16 with brightness, chroma, and an alpha component.</p>
|
||||
<p>See the <a href="../struct.Alpha.html#Cam16Qcha" title="struct cosmic::cosmic_theme::palette::Alpha"><code>Cam16Qcha</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 Cam16Qcha<T> {
|
||||
pub color: <a class="struct" href="struct.Cam16Qch.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qch">Cam16Qch</a><T>,
|
||||
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.Cam16Qch.html" title="struct cosmic::cosmic_theme::palette::cam16::Cam16Qch">Cam16Qch</a><T></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::cam16::Cam16Qcha" async></script></section></div></main></body></html>
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue