pub struct Packed(u32);Expand description
A pixel already encoded in a Format, with no implicit conversion.
Keeping the raw word in a newtype prevents the classic mix-up where a packed XRGB value is written to a screen whose native layout is BGRX.
Tuple Fields§
§0: u32Implementations§
Trait Implementations§
impl Copy for Packed
impl Eq for Packed
impl StructuralPartialEq for Packed
Auto Trait Implementations§
impl Forget for Packed
impl Freeze for Packed
impl Move for Packed
impl RefUnwindSafe for Packed
impl Send for Packed
impl Sync for Packed
impl Unpin for Packed
impl UnsafeUnpin for Packed
impl UnwindSafe for Packed
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