mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
19 lines
17 KiB
HTML
19 lines
17 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Vector tile format styling."><title>maplibre::style - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-cb6f1f67f1bcd037.css" id="mainThemeStyle"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="maplibre" data-themes="" data-resource-suffix="" data-rustdoc-version="1.73.0 (cc66ad468 2023-10-03)" data-channel="1.73.0" data-search-js="search-6dfdfced5eff6596.js" data-settings-js="settings-de11bff964e9d4e5.js" data-settings-css="settings-8c76f75bfb6bd192.css" data-theme-light-css="light-1596385f77d47ef2.css" data-theme-dark-css="dark-0a43001d3fc2282c.css" data-theme-ayu-css="ayu-fd19013d6ce078bf.css" ><script src="../../static.files/storage-db41da1a38ea3cb8.js"></script><script defer src="../../static.files/main-0795b7d26be81095.js"></script><noscript><link rel="stylesheet" media="(prefers-color-scheme:light)" href="../../static.files/light-1596385f77d47ef2.css"><link rel="stylesheet" media="(prefers-color-scheme:dark)" href="../../static.files/dark-0a43001d3fc2282c.css"><link rel="stylesheet" href="../../static.files/noscript-cffde32267a19fd6.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.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">☰</button><a class="logo-container" href="../../maplibre/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../../maplibre/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2 class="location"><a href="#">Module style</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#traits">Traits</a></li></ul></section></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../index.html">maplibre</a>::<wbr><a class="mod" href="#">style</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../src/maplibre/style/mod.rs.html#1-9">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Vector tile format styling.</p>
|
||
</div></details><h2 id="modules" class="small-section-header"><a href="#modules">Modules</a></h2><ul class="item-table"><li><div class="item-name"><a class="mod" href="layer/index.html" title="mod maplibre::style::layer">layer</a></div><div class="desc docblock-short">Vector tile layer drawing utilities.</div></li><li><div class="item-name"><a class="mod" href="raster/index.html" title="mod maplibre::style::raster">raster</a></div><div class="desc docblock-short">Raster tile layer description</div></li><li><div class="item-name"><a class="mod" href="source/index.html" title="mod maplibre::style::source">source</a></div><div class="desc docblock-short">Vector tile data utilities.</div></li><li><div class="item-name"><a class="mod" href="style/index.html" title="mod maplibre::style::style">style</a><span title="Restricted Visibility"> 🔒</span> </div><div class="desc docblock-short">Default vector tile styles configuration.</div></li></ul><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.Aces2065.html" title="struct maplibre::style::Aces2065">Aces2065</a></div><div class="desc docblock-short">A color in the ACES 2065-1 color space.</div></li><li><div class="item-name"><a class="struct" href="struct.AcesCc.html" title="struct maplibre::style::AcesCc">AcesCc</a></div><div class="desc docblock-short">A color in the ACEScc color space.</div></li><li><div class="item-name"><a class="struct" href="struct.AcesCct.html" title="struct maplibre::style::AcesCct">AcesCct</a></div><div class="desc docblock-short">A color in the ACEScct color space.</div></li><li><div class="item-name"><a class="struct" href="struct.AcesCg.html" title="struct maplibre::style::AcesCg">AcesCg</a></div><div class="desc docblock-short">A color in the ACEScg color space.</div></li><li><div class="item-name"><a class="struct" href="struct.Alpha.html" title="struct maplibre::style::Alpha">Alpha</a></div><div class="desc docblock-short">A color with an alpha component.</div></li><li><div class="item-name"><a class="struct" href="struct.Bt2020.html" title="struct maplibre::style::Bt2020">Bt2020</a></div><div class="desc docblock-short">A color in the BT.2020 color space.</div></li><li><div class="item-name"><a class="struct" href="struct.Bt2100.html" title="struct maplibre::style::Bt2100">Bt2100</a></div><div class="desc docblock-short">A color in the BT.2100 color space.</div></li><li><div class="item-name"><a class="struct" href="struct.CieLCh.html" title="struct maplibre::style::CieLCh">CieLCh</a></div><div class="desc docblock-short">A color in the CIE L*C*h° color space.</div></li><li><div class="item-name"><a class="struct" href="struct.CieLab.html" title="struct maplibre::style::CieLab">CieLab</a></div><div class="desc docblock-short">A color in the CIE L*a*b* color space.</div></li><li><div class="item-name"><a class="struct" href="struct.CieXYZ.html" title="struct maplibre::style::CieXYZ">CieXYZ</a></div><div class="desc docblock-short">A color in the CIE XYZ color space.</div></li><li><div class="item-name"><a class="struct" href="struct.DciP3.html" title="struct maplibre::style::DciP3">DciP3</a></div><div class="desc docblock-short">A color in the DCI-P3 (aka P3 DCI and P3 D60) color space.</div></li><li><div class="item-name"><a class="struct" href="struct.DciXYZPrime.html" title="struct maplibre::style::DciXYZPrime">DciXYZPrime</a></div><div class="desc docblock-short">A color in the X’Y’Z’ color space, a DCI specification used for digital cinema mastering.</div></li><li><div class="item-name"><a class="struct" href="struct.DisplayP3.html" title="struct maplibre::style::DisplayP3">DisplayP3</a></div><div class="desc docblock-short">A color in the Display P3 (aka P3 D65) color space.</div></li><li><div class="item-name"><a class="struct" href="struct.EncodedBt2020.html" title="struct maplibre::style::EncodedBt2020">EncodedBt2020</a></div><div class="desc docblock-short">A color in the encoded BT.2020 color space.</div></li><li><div class="item-name"><a class="struct" href="struct.EncodedBt2100HLG.html" title="struct maplibre::style::EncodedBt2100HLG">EncodedBt2100HLG</a></div><div class="desc docblock-short">A color in the encoded BT.2100 color space with HLG (Hybrid Log-Gamma)
|
||
transfer function.</div></li><li><div class="item-name"><a class="struct" href="struct.EncodedBt2100PQ.html" title="struct maplibre::style::EncodedBt2100PQ">EncodedBt2100PQ</a></div><div class="desc docblock-short">A color in the encoded BT.2100 color space with PQ (Perceptual Quantizer)
|
||
transfer function.</div></li><li><div class="item-name"><a class="struct" href="struct.EncodedDisplayP3.html" title="struct maplibre::style::EncodedDisplayP3">EncodedDisplayP3</a></div><div class="desc docblock-short">A color in the Display P3 (aka P3 D65) color space.</div></li><li><div class="item-name"><a class="struct" href="struct.EncodedRec709.html" title="struct maplibre::style::EncodedRec709">EncodedRec709</a></div><div class="desc docblock-short">A color in the encoded Rec.709/BT.709 color space.</div></li><li><div class="item-name"><a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a></div><div class="desc docblock-short">A color in the encoded sRGB color space.</div></li><li><div class="item-name"><a class="struct" href="struct.GenericColor1.html" title="struct maplibre::style::GenericColor1">GenericColor1</a></div><div class="desc docblock-short">A color in a generic color space that can be represented by 1 component. The user
|
||
is responsible for ensuring that the correct color space is respected.</div></li><li><div class="item-name"><a class="struct" href="struct.GenericColor3.html" title="struct maplibre::style::GenericColor3">GenericColor3</a></div><div class="desc docblock-short">A color in a generic color space that can be represented by 3 components. The user
|
||
is responsible for ensuring that the correct color space is respected.</div></li><li><div class="item-name"><a class="struct" href="struct.Hsl.html" title="struct maplibre::style::Hsl">Hsl</a></div><div class="desc docblock-short">A color in the HSL color space.</div></li><li><div class="item-name"><a class="struct" href="struct.Hsv.html" title="struct maplibre::style::Hsv">Hsv</a></div><div class="desc docblock-short">A color in the HSV color space.</div></li><li><div class="item-name"><a class="struct" href="struct.ICtCpHLG.html" title="struct maplibre::style::ICtCpHLG">ICtCpHLG</a></div><div class="desc docblock-short">A color in the ICtCp color space with HLG (Hybrid Log-Gamma)
|
||
nonlinearity.</div></li><li><div class="item-name"><a class="struct" href="struct.ICtCpPQ.html" title="struct maplibre::style::ICtCpPQ">ICtCpPQ</a></div><div class="desc docblock-short">A color in the ICtCp color space with PQ (Perceptual Quantizer)
|
||
nonlinearity.</div></li><li><div class="item-name"><a class="struct" href="struct.LinearSrgb.html" title="struct maplibre::style::LinearSrgb">LinearSrgb</a></div><div class="desc docblock-short">A color in the linear (decoded) sRGB color space.</div></li><li><div class="item-name"><a class="struct" href="struct.Luma.html" title="struct maplibre::style::Luma">Luma</a></div><div class="desc docblock-short">A single-channel CIE luma (non-linear transform from luminance).</div></li><li><div class="item-name"><a class="struct" href="struct.Luminance.html" title="struct maplibre::style::Luminance">Luminance</a></div><div class="desc docblock-short">A single-channel CIE luminance.</div></li><li><div class="item-name"><a class="struct" href="struct.Oklab.html" title="struct maplibre::style::Oklab">Oklab</a></div><div class="desc docblock-short">A color in the Oklab color space.</div></li><li><div class="item-name"><a class="struct" href="struct.Oklch.html" title="struct maplibre::style::Oklch">Oklch</a></div><div class="desc docblock-short">A color in the Oklch color space (a transformation from Oklab to LCh° coordinates).</div></li><li><div class="item-name"><a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a></div><div class="desc docblock-short">A premultiplied color with an alpha component.</div></li><li><div class="item-name"><a class="struct" href="struct.Rec709.html" title="struct maplibre::style::Rec709">Rec709</a></div><div class="desc docblock-short">A color in the Rec.709/BT.709 color space.</div></li><li><div class="item-name"><a class="struct" href="struct.Style.html" title="struct maplibre::style::Style">Style</a></div><div class="desc docblock-short">Stores the style for a multi-layered map.</div></li><li><div class="item-name"><a class="struct" href="struct.YCbCr.html" title="struct maplibre::style::YCbCr">YCbCr</a></div><div class="desc docblock-short">A color in the YCbCr color space. See discussion of the difference between YCbCr, YUV, and
|
||
YPbPr in <a href="https://en.wikipedia.org/wiki/YCbCr">YCbCr Wikipedia article</a></div></li><li><div class="item-name"><a class="struct" href="struct.YCxCz.html" title="struct maplibre::style::YCxCz">YCxCz</a></div><div class="desc docblock-short">A color in the YCxCz (also called YyCxCz) color space, originally defined in “Optimized
|
||
universal color palette design for error diffusion” by B. W. Kolpatzik and C. A. Bouman.
|
||
Can be thought of as a “linear CIE Lab”.</div></li><li><div class="item-name"><a class="struct" href="struct.YPbPr.html" title="struct maplibre::style::YPbPr">YPbPr</a></div><div class="desc docblock-short">A color in the YPbPr color space. See discussion of the difference between YCbCr,
|
||
YUV, YPbPr, and Y’PbPr in the <a href="https://en.wikipedia.org/wiki/YCbCr">YCbCr Wikipedia article</a></div></li><li><div class="item-name"><a class="struct" href="struct.YPrimeCbCr.html" title="struct maplibre::style::YPrimeCbCr">YPrimeCbCr</a></div><div class="desc docblock-short">A color in the Y’CbCr color space. See discussion of the difference between YCbCr, Y’CbCr,
|
||
YUV, YPbPr, and Y’PbPr in the <a href="https://en.wikipedia.org/wiki/YCbCr">YCbCr Wikipedia article</a></div></li><li><div class="item-name"><a class="struct" href="struct.YPrimePbPr.html" title="struct maplibre::style::YPrimePbPr">YPrimePbPr</a></div><div class="desc docblock-short">A color in the Y’PbPr color space. See discussion of the difference between YCbCr,
|
||
YUV, YPbPr, and Y’PbPr in the <a href="https://en.wikipedia.org/wiki/YCbCr">YCbCr Wikipedia article</a></div></li><li><div class="item-name"><a class="struct" href="struct.Yuv.html" title="struct maplibre::style::Yuv">Yuv</a></div><div class="desc docblock-short">A color in the YUV color space. See discussion of the difference between YCbCr, YUV, and
|
||
YPbPr in <a href="https://en.wikipedia.org/wiki/YCbCr">YCbCr Wikipedia article</a></div></li></ul><h2 id="enums" class="small-section-header"><a href="#enums">Enums</a></h2><ul class="item-table"><li><div class="item-name"><a class="enum" href="enum.Spaces.html" title="enum maplibre::style::Spaces">Spaces</a></div><div class="desc docblock-short">An enum with a variant for each of the color spaces
|
||
supported by the library. Useful for tracking as metadata
|
||
in something like an image type, and for runtime-determined color types.</div></li></ul><h2 id="traits" class="small-section-header"><a href="#traits">Traits</a></h2><ul class="item-table"><li><div class="item-name"><a class="trait" href="trait.ColorInterop.html" title="trait maplibre::style::ColorInterop">ColorInterop</a></div><div class="desc docblock-short">A trait that should be implemented by provider crates on their local color types so that you can call
|
||
<code>color.to_cint()</code> and <code>Color::from_cint(cint_color)</code>.</div></li><li><div class="item-name"><a class="trait" href="trait.ColorType.html" title="trait maplibre::style::ColorType">ColorType</a></div><div class="desc docblock-short">A trait used to simpify the interface of the <a href="struct.Alpha.html" title="struct maplibre::style::Alpha"><code>Alpha</code></a> and <a href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha"><code>PremultipliedAlpha</code></a> types and
|
||
allow use with <a href="enum.Spaces.html" title="enum maplibre::style::Spaces"><code>Spaces</code></a> enum.</div></li></ul></section></div></main></body></html> |