Struct rich_sdl2_rust::color::pixel::Pixel
source · pub struct Pixel { /* private fields */ }
Expand description
A simple pixel that can convert into u32
.
Implementations§
Trait Implementations§
source§impl Ord for Pixel
impl Ord for Pixel
source§impl PartialEq for Pixel
impl PartialEq for Pixel
source§impl PartialOrd for Pixel
impl PartialOrd for Pixel
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Pixel
impl Eq for Pixel
impl StructuralPartialEq for Pixel
Auto Trait Implementations§
impl RefUnwindSafe for Pixel
impl Send for Pixel
impl Sync for Pixel
impl Unpin for Pixel
impl UnwindSafe for Pixel
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