#[repr(C)]pub struct Bgrx {
pub b: u8,
pub g: u8,
pub r: u8,
pub x: u8,
}Expand description
32-bit BGR pixel with padding byte (BGRx).
Same memory layout as BGRA<u8> but the 4th byte is padding.
Fields§
§b: u8Blue channel.
g: u8Green channel.
r: u8Red channel.
x: u8Padding byte. Value is unspecified and should be ignored.
Trait Implementations§
Source§impl Pixel for Bgrx
impl Pixel for Bgrx
Source§const DESCRIPTOR: PixelDescriptor = PixelDescriptor::BGRX8
const DESCRIPTOR: PixelDescriptor = PixelDescriptor::BGRX8
The pixel format descriptor for this type.
impl Copy for Bgrx
impl Eq for Bgrx
impl Pod for Bgrx
impl StructuralPartialEq for Bgrx
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§
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.