# maplibre::style - Rust
Vector tile format styling.

# Module maplibre::style

source ·
Expand description

Vector tile format styling.

## Modules

- layer
  Vector tile layer drawing utilities.
- raster
  Raster tile layer description
- source
  Vector tile data utilities.
- style 🔒
  Default vector tile styles configuration.

## Structs

- Aces2065
  A color in the ACES 2065-1 color space.
- AcesCc
  A color in the ACEScc color space.
- AcesCct
  A color in the ACEScct color space.
- AcesCg
  A color in the ACEScg color space.
- Alpha
  A color with an alpha component.
- Bt2020
  A color in the BT.2020 color space.
- Bt2100
  A color in the BT.2100 color space.
- CieLCh
  A color in the CIE L*C*h° color space.
- CieLab
  A color in the CIE L*a*b* color space.
- CieXYZ
  A color in the CIE XYZ color space.
- DciP3
  A color in the DCI-P3 (aka P3 DCI and P3 D60) color space.
- DciXYZPrime
  A color in the X’Y’Z’ color space, a DCI specification used for digital cinema mastering.
- DisplayP3
  A color in the Display P3 (aka P3 D65) color space.
- EncodedBt2020
  A color in the encoded BT.2020 color space.
- EncodedBt2100HLG
  A color in the encoded BT.2100 color space with HLG (Hybrid Log-Gamma) transfer function.
- EncodedBt2100PQ
  A color in the encoded BT.2100 color space with PQ (Perceptual Quantizer) transfer function.
- EncodedDisplayP3
  A color in the Display P3 (aka P3 D65) color space.
- EncodedRec709
  A color in the encoded Rec.709/BT.709 color space.
- EncodedSrgb
  A color in the encoded sRGB color space.
- GenericColor1
  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.
- GenericColor3
  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.
- Hsl
  A color in the HSL color space.
- Hsv
  A color in the HSV color space.
- ICtCpHLG
  A color in the ICtCp color space with HLG (Hybrid Log-Gamma) nonlinearity.
- ICtCpPQ
  A color in the ICtCp color space with PQ (Perceptual Quantizer) nonlinearity.
- LinearSrgb
  A color in the linear (decoded) sRGB color space.
- Luma
  A single-channel CIE luma (non-linear transform from luminance).
- Luminance
  A single-channel CIE luminance.
- Oklab
  A color in the Oklab color space.
- Oklch
  A color in the Oklch color space (a transformation from Oklab to LCh° coordinates).
- PremultipliedAlpha
  A premultiplied color with an alpha component.
- Rec709
  A color in the Rec.709/BT.709 color space.
- Style
  Stores the style for a multi-layered map.
- YCbCr
  A color in the YCbCr color space. See discussion of the difference between YCbCr, YUV, and YPbPr in YCbCr Wikipedia article
- YCxCz
  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”.
- YPbPr
  A color in the YPbPr color space. See discussion of the difference between YCbCr, YUV, YPbPr, and Y’PbPr in the YCbCr Wikipedia article
- YPrimeCbCr
  A color in the Y’CbCr color space. See discussion of the difference between YCbCr, Y’CbCr, YUV, YPbPr, and Y’PbPr in the YCbCr Wikipedia article
- YPrimePbPr
  A color in the Y’PbPr color space. See discussion of the difference between YCbCr, YUV, YPbPr, and Y’PbPr in the YCbCr Wikipedia article
- Yuv
  A color in the YUV color space. See discussion of the difference between YCbCr, YUV, and YPbPr in YCbCr Wikipedia article

## Enums

- Spaces
  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.

## Traits

- ColorInterop
  A trait that should be implemented by provider crates on their local color types so that you can call `color.to_cint()` and `Color::from_cint(cint_color)`.
- ColorType
  A trait used to simpify the interface of the `Alpha` and `PremultipliedAlpha` types and allow use with `Spaces` enum.