Enum hvif::style::Colour [−][src]
Expand description
Represents one colour, with optimisations in the cases there is no alpha, or all three components are equal (that is, grey).
Variants
Contains all four components.
Completely opaque RGB.
All three colours are equal.
GreyNoAlpha(u8)
Completely opaque grey.
Tuple Fields of GreyNoAlpha
0: u8
Implementations
Returns whether a colour is opaque, that is no alpha value is present.
Converts this colour to its rgb components.
Safety: it must be called only on opaque colours.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Colour
impl UnwindSafe for Colour
Blanket Implementations
Mutably borrows from an owned value. Read more