pub struct PackedColor(pub u32);
Expand description
A wrapper for an RGBA color with 8 bits per texel, encoded as a u32.
Tuple Fields§
§0: u32
Trait Implementations§
Source§impl Clone for PackedColor
impl Clone for PackedColor
Source§fn clone(&self) -> PackedColor
fn clone(&self) -> PackedColor
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PackedColor
impl Debug for PackedColor
Source§impl Hash for PackedColor
impl Hash for PackedColor
Source§impl PartialEq for PackedColor
impl PartialEq for PackedColor
Source§impl PartialOrd for PackedColor
impl PartialOrd for PackedColor
impl Copy for PackedColor
impl Eq for PackedColor
impl StructuralPartialEq for PackedColor
Auto Trait Implementations§
impl Freeze for PackedColor
impl RefUnwindSafe for PackedColor
impl Send for PackedColor
impl Sync for PackedColor
impl Unpin for PackedColor
impl UnwindSafe for PackedColor
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)