#[repr(C)]pub struct Bgr<T> {
pub b: T,
pub g: T,
pub r: T,
}
Expand description
Fields§
§b: T
Blue Component
g: T
Green Component
r: T
Red Component
Implementations§
Trait Implementations§
source§impl<T> AsPixels<Bgr<T>> for [T]
impl<T> AsPixels<Bgr<T>> for [T]
source§fn as_pixels_mut(&mut self) -> &mut [BGR<T>]
fn as_pixels_mut(&mut self) -> &mut [BGR<T>]
Use
::bytemuck::cast_slice_mut()
instead. Read moresource§impl<T: Copy, B> ColorComponentMap<Bgr<B>, T, B> for Bgr<T>
impl<T: Copy, B> ColorComponentMap<Bgr<B>, T, B> for Bgr<T>
source§impl<T> ComponentSlice<T> for Bgr<T>
impl<T> ComponentSlice<T> for Bgr<T>
source§impl<T: Ord> Ord for Bgr<T>
impl<T: Ord> Ord for Bgr<T>
source§impl<T: PartialOrd> PartialOrd for Bgr<T>
impl<T: PartialOrd> PartialOrd for Bgr<T>
impl<T: Copy> Copy for Bgr<T>
impl<T: Eq> Eq for Bgr<T>
impl<T> Pod for Bgr<T>where
T: Pod,
impl<T> StructuralPartialEq for Bgr<T>
Auto Trait Implementations§
impl<T> Freeze for Bgr<T>where
T: Freeze,
impl<T> RefUnwindSafe for Bgr<T>where
T: RefUnwindSafe,
impl<T> Send for Bgr<T>where
T: Send,
impl<T> Sync for Bgr<T>where
T: Sync,
impl<T> Unpin for Bgr<T>where
T: Unpin,
impl<T> UnwindSafe for Bgr<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
source§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)