Struct rgb::alt::BGR [−][src]
#[repr(C)]pub struct BGR<ComponentType> {
pub b: ComponentType,
pub g: ComponentType,
pub r: ComponentType,
}
Expand description
RGB in reverse byte order
Fields
b: ComponentType
Blue first
g: ComponentType
Green
r: ComponentType
Red last
Implementations
Trait Implementations
Reinterpret the slice as a read-only/shared slice of pixels. Multiple consecutive elements in the slice are intepreted as a single pixel (depending on format, e.g. 3 for RGB, 4 for RGBA). Read more
The components interpreted as an array, e.g. one RGB
expands to 3 elements. Read more
impl<'de, ComponentType> Deserialize<'de> for BGR<ComponentType> where
ComponentType: Deserialize<'de>,
impl<'de, ComponentType> Deserialize<'de> for BGR<ComponentType> where
ComponentType: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Assumes 255 is opaque
Assumes 65535 is opaque
Assumes 255 is opaque
Assumes 65535 is opaque
Assumes 255 is opaque
Assumes 65535 is opaque
Assumes 255 is opaque
Assumes 65535 is opaque
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<ComponentType> RefUnwindSafe for BGR<ComponentType> where
ComponentType: RefUnwindSafe,
impl<ComponentType> UnwindSafe for BGR<ComponentType> where
ComponentType: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more