19 lines
18 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Vector tile format styling."><meta name="keywords" content="rust, rustlang, rust-lang, style"><title>maplibre::style - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../normalize.css"><link rel="stylesheet" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../ayu.css" disabled><link rel="stylesheet" href="../../dark.css" disabled><link rel="stylesheet" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.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">&#9776;</button><a class="sidebar-logo" href="../../maplibre/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../maplibre/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">Module style</a></h2><div class="sidebar-elems"><section><div class="block"><ul><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></div></section></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../maplibre/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Module <a href="../index.html">maplibre</a>::<wbr><a class="mod" href="#">style</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/maplibre/style/mod.rs.html#1-9">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><details class="rustdoc-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><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="mod" href="layer/index.html" title="maplibre::style::layer mod">layer</a></div><div class="item-right docblock-short">Vector tile layer drawing utilities.</div></div><div class="item-row"><div class="item-left module-item"><a class="mod" href="raster/index.html" title="maplibre::style::raster mod">raster</a></div><div class="item-right docblock-short">Raster tile layer description</div></div><div class="item-row"><div class="item-left module-item"><a class="mod" href="source/index.html" title="maplibre::style::source mod">source</a></div><div class="item-right docblock-short">Vector tile data utilities.</div></div><div class="item-row"><div class="item-left module-item"><a class="mod" href="style/index.html" title="maplibre::style::style mod">style</a><span title="Restricted Visibility">&nbsp;🔒</span> </div><div class="item-right docblock-short">Default vector tile styles configuration.</div></div></div><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Aces2065.html" title="maplibre::style::Aces2065 struct">Aces2065</a></div><div class="item-right docblock-short">A color in the ACES 2065-1 color space.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.AcesCc.html" title="maplibre::style::AcesCc struct">AcesCc</a></div><div class="item-right docblock-short">A color in the ACEScc color space.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.AcesCct.html" title="maplibre::style::AcesCct struct">AcesCct</a></div><div class="item-right docblock-short">A color in the ACEScct color space.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.AcesCg.html" title="maplibre::style::AcesCg struct">AcesCg</a></div><div class="item-right docblock-short">A color in the ACEScg color space.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Alpha.html" title="maplibre::style::Alpha struct">Alpha</a></div><div class="item-right docblock-short">A color with an alpha component.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Bt2020.html" title="maplibre::style::Bt2020 struct">Bt2020</a></div><div class="item-right docblock-short">A color in the BT.2020 color space.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Bt2100.html" title="maplibre::style::Bt2100 struct">Bt2100</a></div><div class="item-right docblock-short">A color in the BT.2100 color space.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.CieLCh.html" title="maplibre::style::CieLCh struct">CieLCh</a></div><div class="item-right docblock-short">A color in the CIE L*C*h° color space.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.CieLab.html" title="maplibre::style::CieLab struct">CieLab</a></div><div class="item-right docblock-short">A color in the CIE L*a*b* color space.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.CieXYZ.html" title="maplibre::style::CieXYZ struct">CieXYZ</a></div><div class="item-right docblock-short">A color in the CIE XYZ color space.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.DciP3.html" title="maplibre::style::DciP3 struct">DciP3</a></div><div class="item-right docblock-short">A color in the DCI-P3 (aka P3 DCI and P3 D60) color space.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.DciXYZPrime.html" title="maplibre::style::DciXYZPrime struct">DciXYZPrime</a></div><div class="item-right docblock-short">A color in the XYZ color space, a DCI specification used for digital cinema mastering.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.DisplayP3.html" title="maplibre::style::DisplayP3 struct">DisplayP3</a></div><div class="item-right docblock-short">A color in the Display P3 (aka P3 D65) color space.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.EncodedBt2020.html" title="maplibre::style::EncodedBt2020 struct">EncodedBt2020</a></div><div class="item-right docblock-short">A color in the encoded BT.2020 color space.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.EncodedBt2100HLG.html" title="maplibre::style::EncodedBt2100HLG struct">EncodedBt2100HLG</a></div><div class="item-right docblock-short">A color in the encoded BT.2100 color space with HLG (Hybrid Log-Gamma)
transfer function.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.EncodedBt2100PQ.html" title="maplibre::style::EncodedBt2100PQ struct">EncodedBt2100PQ</a></div><div class="item-right docblock-short">A color in the encoded BT.2100 color space with PQ (Perceptual Quantizer)
transfer function.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.EncodedDisplayP3.html" title="maplibre::style::EncodedDisplayP3 struct">EncodedDisplayP3</a></div><div class="item-right docblock-short">A color in the Display P3 (aka P3 D65) color space.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.EncodedRec709.html" title="maplibre::style::EncodedRec709 struct">EncodedRec709</a></div><div class="item-right docblock-short">A color in the encoded Rec.709/BT.709 color space.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.EncodedSrgb.html" title="maplibre::style::EncodedSrgb struct">EncodedSrgb</a></div><div class="item-right docblock-short">A color in the encoded sRGB color space.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.GenericColor1.html" title="maplibre::style::GenericColor1 struct">GenericColor1</a></div><div class="item-right 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></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.GenericColor3.html" title="maplibre::style::GenericColor3 struct">GenericColor3</a></div><div class="item-right 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></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Hsl.html" title="maplibre::style::Hsl struct">Hsl</a></div><div class="item-right docblock-short">A color in the HSL color space.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Hsv.html" title="maplibre::style::Hsv struct">Hsv</a></div><div class="item-right docblock-short">A color in the HSV color space.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.ICtCpHLG.html" title="maplibre::style::ICtCpHLG struct">ICtCpHLG</a></div><div class="item-right docblock-short">A color in the ICtCp color space with HLG (Hybrid Log-Gamma)
nonlinearity.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.ICtCpPQ.html" title="maplibre::style::ICtCpPQ struct">ICtCpPQ</a></div><div class="item-right docblock-short">A color in the ICtCp color space with PQ (Perceptual Quantizer)
nonlinearity.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.LinearSrgb.html" title="maplibre::style::LinearSrgb struct">LinearSrgb</a></div><div class="item-right docblock-short">A color in the linear (decoded) sRGB color space.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Luma.html" title="maplibre::style::Luma struct">Luma</a></div><div class="item-right docblock-short">A single-channel CIE luma (non-linear transform from luminance).</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Luminance.html" title="maplibre::style::Luminance struct">Luminance</a></div><div class="item-right docblock-short">A single-channel CIE luminance.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Oklab.html" title="maplibre::style::Oklab struct">Oklab</a></div><div class="item-right docblock-short">A color in the Oklab color space.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Oklch.html" title="maplibre::style::Oklch struct">Oklch</a></div><div class="item-right docblock-short">A color in the Oklch color space (a transformation from Oklab to LCh° coordinates).</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.PremultipliedAlpha.html" title="maplibre::style::PremultipliedAlpha struct">PremultipliedAlpha</a></div><div class="item-right docblock-short">A premultiplied color with an alpha component.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Rec709.html" title="maplibre::style::Rec709 struct">Rec709</a></div><div class="item-right docblock-short">A color in the Rec.709/BT.709 color space.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Style.html" title="maplibre::style::Style struct">Style</a></div><div class="item-right docblock-short">Stores the style for a multi-layered map.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.YCbCr.html" title="maplibre::style::YCbCr struct">YCbCr</a></div><div class="item-right 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></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.YCxCz.html" title="maplibre::style::YCxCz struct">YCxCz</a></div><div class="item-right 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></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.YPbPr.html" title="maplibre::style::YPbPr struct">YPbPr</a></div><div class="item-right docblock-short">A color in the YPbPr color space. See discussion of the difference between YCbCr,
YUV, YPbPr, and YPbPr in the <a href="https://en.wikipedia.org/wiki/YCbCr">YCbCr Wikipedia article</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.YPrimeCbCr.html" title="maplibre::style::YPrimeCbCr struct">YPrimeCbCr</a></div><div class="item-right docblock-short">A color in the YCbCr color space. See discussion of the difference between YCbCr, YCbCr,
YUV, YPbPr, and YPbPr in the <a href="https://en.wikipedia.org/wiki/YCbCr">YCbCr Wikipedia article</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.YPrimePbPr.html" title="maplibre::style::YPrimePbPr struct">YPrimePbPr</a></div><div class="item-right docblock-short">A color in the YPbPr color space. See discussion of the difference between YCbCr,
YUV, YPbPr, and YPbPr in the <a href="https://en.wikipedia.org/wiki/YCbCr">YCbCr Wikipedia article</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Yuv.html" title="maplibre::style::Yuv struct">Yuv</a></div><div class="item-right 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></div></div><h2 id="enums" class="small-section-header"><a href="#enums">Enums</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.Spaces.html" title="maplibre::style::Spaces enum">Spaces</a></div><div class="item-right 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></div></div><h2 id="traits" class="small-section-header"><a href="#traits">Traits</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.ColorInterop.html" title="maplibre::style::ColorInterop trait">ColorInterop</a></div><div class="item-right 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></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.ColorType.html" title="maplibre::style::ColorType trait">ColorType</a></div><div class="item-right docblock-short">A trait used to simpify the interface of the <a href="struct.Alpha.html" title="Alpha"><code>Alpha</code></a> and <a href="struct.PremultipliedAlpha.html" title="PremultipliedAlpha"><code>PremultipliedAlpha</code></a> types and
allow use with <a href="enum.Spaces.html" title="Spaces"><code>Spaces</code></a> enum.</div></div></div></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="maplibre" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>