#[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
sourceimpl<T> AsPixels<BGR<T>> for [T]
impl<T> AsPixels<BGR<T>> for [T]
sourcefn as_pixels(&self) -> &[BGR<T>]
fn as_pixels(&self) -> &[BGR<T>]
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
sourcefn as_pixels_mut(&mut self) -> &mut [BGR<T>]
fn as_pixels_mut(&mut self) -> &mut [BGR<T>]
Reinterpret the slice as a mutable/exclusive 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
sourceimpl<T: Copy, B> ColorComponentMap<BGR<B>, T, B> for BGR<T>
impl<T: Copy, B> ColorComponentMap<BGR<B>, T, B> for BGR<T>
sourceimpl<T: Copy, B> ComponentMap<BGR<B>, T, B> for BGR<T>
impl<T: Copy, B> ComponentMap<BGR<B>, T, B> for BGR<T>
sourceimpl<T> ComponentSlice<T> for BGR<T>
impl<T> ComponentSlice<T> for BGR<T>
sourceimpl<ComponentType: Ord> Ord for BGR<ComponentType>
impl<ComponentType: Ord> Ord for BGR<ComponentType>
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<ComponentType: PartialOrd> PartialOrd<BGR<ComponentType>> for BGR<ComponentType>
impl<ComponentType: PartialOrd> PartialOrd<BGR<ComponentType>> for BGR<ComponentType>
sourcefn partial_cmp(&self, other: &BGR<ComponentType>) -> Option<Ordering>
fn partial_cmp(&self, other: &BGR<ComponentType>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
impl<ComponentType: Copy> Copy for BGR<ComponentType>
impl<ComponentType: Eq> Eq for BGR<ComponentType>
impl<ComponentType> StructuralEq for BGR<ComponentType>
impl<ComponentType> StructuralPartialEq for BGR<ComponentType>
Auto Trait Implementations
impl<ComponentType> RefUnwindSafe for BGR<ComponentType> where
ComponentType: RefUnwindSafe,
impl<ComponentType> Send for BGR<ComponentType> where
ComponentType: Send,
impl<ComponentType> Sync for BGR<ComponentType> where
ComponentType: Sync,
impl<ComponentType> Unpin for BGR<ComponentType> where
ComponentType: Unpin,
impl<ComponentType> UnwindSafe for BGR<ComponentType> where
ComponentType: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more