#[repr(C)]pub struct Bgrx {
pub b: u8,
pub g: u8,
pub r: u8,
pub x: u8,
}Expand description
4-byte BGR + unused padding pixel (#[repr(C)], align = 1).
Fields§
§b: u8Blue channel.
g: u8Green channel.
r: u8Red channel.
x: u8Unspecified padding byte.
Trait Implementations§
impl Copy for Bgrx
impl Eq for Bgrx
Source§impl PixelType for Bgrx
impl PixelType for Bgrx
Source§const LAYOUT: SampleLayout = SampleLayout::BGRX8
const LAYOUT: SampleLayout = SampleLayout::BGRX8
Expected
SampleLayout for this Rust pixel struct.impl Pod for Bgrx
impl StructuralPartialEq for Bgrx
Source§impl TypedElement for Bgrx
impl TypedElement for Bgrx
Source§fn matches_layout_with_packing(
layout: SampleLayout,
access: BitPackingAccess,
) -> bool
fn matches_layout_with_packing( layout: SampleLayout, access: BitPackingAccess, ) -> bool
Whether this element type is semantically compatible with
layout under an explicit
BitPackingAccess policy.Source§fn matches_layout(layout: SampleLayout) -> bool
fn matches_layout(layout: SampleLayout) -> bool
Whether this element type is semantically compatible with
layout under default
BitPackingAccess::Fail (requiring BitPacking::Full).Auto Trait Implementations§
impl Freeze for Bgrx
impl RefUnwindSafe for Bgrx
impl Send for Bgrx
impl Sync for Bgrx
impl Unpin for Bgrx
impl UnsafeUnpin for Bgrx
impl UnwindSafe for Bgrx
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
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
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§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.§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.