# ColorStruct in maplibre::style - Rust
A trait used to simpify the interface of the [`Alpha`] and [`PremultipliedAlpha`] types.
Keywords: rust, rustlang, rust-lang, ColorStruct

# Trait maplibre::style::ColorStruct

[−]

    pub trait ColorStruct {
        type ComponentTy: Clone + Copy;
    }

Expand description

A trait used to simpify the interface of the `Alpha` and `PremultipliedAlpha` types.

## Associated Types

#### type ComponentTy: Clone + Copy

## Implementors

### impl<CTy> ColorStruct for Aces2065<CTy> where
CTy: Clone + Copy,

#### type ComponentTy = CTy

### impl<CTy> ColorStruct for AcesCc<CTy> where
CTy: Clone + Copy,

#### type ComponentTy = CTy

### impl<CTy> ColorStruct for AcesCct<CTy> where
CTy: Clone + Copy,

#### type ComponentTy = CTy

### impl<CTy> ColorStruct for AcesCg<CTy> where
CTy: Clone + Copy,

#### type ComponentTy = CTy

### impl<CTy> ColorStruct for Bt2020<CTy> where
CTy: Clone + Copy,

#### type ComponentTy = CTy

### impl<CTy> ColorStruct for Bt2100<CTy> where
CTy: Clone + Copy,

#### type ComponentTy = CTy

### impl<CTy> ColorStruct for CieLCh<CTy> where
CTy: Clone + Copy,

#### type ComponentTy = CTy

### impl<CTy> ColorStruct for CieLab<CTy> where
CTy: Clone + Copy,

#### type ComponentTy = CTy

### impl<CTy> ColorStruct for CieXYZ<CTy> where
CTy: Clone + Copy,

#### type ComponentTy = CTy

### impl<CTy> ColorStruct for DciP3<CTy> where
CTy: Clone + Copy,

#### type ComponentTy = CTy

### impl<CTy> ColorStruct for DciXYZPrime<CTy> where
CTy: Clone + Copy,

#### type ComponentTy = CTy

### impl<CTy> ColorStruct for DisplayP3<CTy> where
CTy: Clone + Copy,

#### type ComponentTy = CTy

### impl<CTy> ColorStruct for EncodedBt2020<CTy> where
CTy: Clone + Copy,

#### type ComponentTy = CTy

### impl<CTy> ColorStruct for EncodedBt2100HLG<CTy> where
CTy: Clone + Copy,

#### type ComponentTy = CTy

### impl<CTy> ColorStruct for EncodedBt2100PQ<CTy> where
CTy: Clone + Copy,

#### type ComponentTy = CTy

### impl<CTy> ColorStruct for EncodedDisplayP3<CTy> where
CTy: Clone + Copy,

#### type ComponentTy = CTy

### impl<CTy> ColorStruct for EncodedRec709<CTy> where
CTy: Clone + Copy,

#### type ComponentTy = CTy

### impl<CTy> ColorStruct for EncodedSrgb<CTy> where
CTy: Clone + Copy,

#### type ComponentTy = CTy

### impl<CTy> ColorStruct for GenericColor<CTy> where
CTy: Clone + Copy,

#### type ComponentTy = CTy

### impl<CTy> ColorStruct for Hsl<CTy> where
CTy: Clone + Copy,

#### type ComponentTy = CTy

### impl<CTy> ColorStruct for Hsv<CTy> where
CTy: Clone + Copy,

#### type ComponentTy = CTy

### impl<CTy> ColorStruct for ICtCpHLG<CTy> where
CTy: Clone + Copy,

#### type ComponentTy = CTy

### impl<CTy> ColorStruct for ICtCpPQ<CTy> where
CTy: Clone + Copy,

#### type ComponentTy = CTy

### impl<CTy> ColorStruct for LinearSrgb<CTy> where
CTy: Clone + Copy,

#### type ComponentTy = CTy

### impl<CTy> ColorStruct for Oklab<CTy> where
CTy: Clone + Copy,

#### type ComponentTy = CTy

### impl<CTy> ColorStruct for Oklch<CTy> where
CTy: Clone + Copy,

#### type ComponentTy = CTy

### impl<CTy> ColorStruct for Rec709<CTy> where
CTy: Clone + Copy,

#### type ComponentTy = CTy