#[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<'de, ComponentType> Deserialize<'de> for BGR<ComponentType>where
ComponentType: Deserialize<'de>,
impl<'de, ComponentType> Deserialize<'de> for BGR<ComponentType>where
ComponentType: Deserialize<'de>,
sourcefn 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
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) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<ComponentType: PartialEq> PartialEq<BGR<ComponentType>> for BGR<ComponentType>
impl<ComponentType: PartialEq> PartialEq<BGR<ComponentType>> 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>
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 moreimpl<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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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