pub type BGR16 = BGR<u16>;
Expand description
16-bit BGR in machine’s native endian
Aliased Type§
struct BGR16 {
pub b: u16,
pub g: u16,
pub r: u16,
}
Fields§
§b: u16
Blue first
g: u16
Green
r: u16
Red last
Implementations
Trait Implementations
source§impl<T> ComponentSlice<T> for BGR<T>
impl<T> ComponentSlice<T> for BGR<T>
source§impl<ComponentType: Ord> Ord for BGR<ComponentType>
impl<ComponentType: Ord> Ord for BGR<ComponentType>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<ComponentType: PartialEq> PartialEq for BGR<ComponentType>
impl<ComponentType: PartialEq> PartialEq for BGR<ComponentType>
source§impl<ComponentType: PartialOrd> PartialOrd for BGR<ComponentType>
impl<ComponentType: PartialOrd> PartialOrd for BGR<ComponentType>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more