#[repr(C)]pub struct Rgbx {
pub r: u8,
pub g: u8,
pub b: u8,
pub x: u8,
}Expand description
Full re-export of zenpixels core types (zero module name collisions!).
4-byte RGB + unused padding pixel (#[repr(C)], align = 1).
Fields§
§r: u8Red channel.
g: u8Green channel.
b: u8Blue channel.
x: u8Unspecified padding byte.
Trait Implementations§
impl Copy for Rgbx
impl Eq for Rgbx
Source§impl PixelType for Rgbx
impl PixelType for Rgbx
Source§const LAYOUT: SampleLayout = SampleLayout::RGBX8
const LAYOUT: SampleLayout = SampleLayout::RGBX8
Expected
SampleLayout for this Rust pixel struct.impl Pod for Rgbx
impl StructuralPartialEq for Rgbx
Source§impl TypedElement for Rgbx
impl TypedElement for Rgbx
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 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§
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.