#[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, B> ColorComponentMap<Bgr<B>, T, B> for Bgr<T>where
T: Copy,
impl<T, B> ColorComponentMap<Bgr<B>, T, B> for Bgr<T>where
T: Copy,
Source§impl<T> ComponentSlice<T> for Bgr<T>
impl<T> ComponentSlice<T> for Bgr<T>
Source§impl<T> Ord for Bgr<T>where
T: Ord,
impl<T> Ord for Bgr<T>where
T: Ord,
Source§impl<T> PartialOrd for Bgr<T>where
T: PartialOrd,
impl<T> PartialOrd for Bgr<T>where
T: PartialOrd,
impl<T> Copy for Bgr<T>where
T: Copy,
impl<T> Eq for Bgr<T>where
T: Eq,
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§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.Source§impl<Target, Original> VectorizedInto<Target> for Originalwhere
Target: VectorizedFrom<Original>,
impl<Target, Original> VectorizedInto<Target> for Originalwhere
Target: VectorizedFrom<Original>,
Source§fn vectorized_into(self) -> Target
fn vectorized_into(self) -> Target
Performs the conversion.