#[repr(C)]pub struct Rgbx {
pub r: u8,
pub g: u8,
pub b: u8,
pub x: u8,
}Expand description
32-bit RGB pixel with padding byte (RGBx).
Same memory layout as Rgba<u8> but the 4th byte is padding,
not alpha. Use this for SIMD-friendly 32-bit RGB processing
without alpha semantics.
Fields§
§r: u8Red channel.
g: u8Green channel.
b: u8Blue channel.
x: u8Padding byte. Value is unspecified and should be ignored.
Trait Implementations§
Source§impl Pixel for Rgbx
impl Pixel for Rgbx
Source§const DESCRIPTOR: PixelDescriptor = PixelDescriptor::RGBX8
const DESCRIPTOR: PixelDescriptor = PixelDescriptor::RGBX8
The pixel format descriptor for this type.
impl Copy for Rgbx
impl Eq for Rgbx
impl Pod for Rgbx
impl StructuralPartialEq for Rgbx
Auto Trait Implementations§
impl Freeze for Rgbx
impl RefUnwindSafe for Rgbx
impl Send for Rgbx
impl Sync for Rgbx
impl Unpin for Rgbx
impl UnsafeUnpin for Rgbx
impl UnwindSafe for Rgbx
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.