#[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<'de, T> Deserialize<'de> for Bgr<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Bgr<T>where
T: Deserialize<'de>,
Source§fn 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
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
.