#[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]
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>
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