#[repr(C)]pub struct PixelBitmask {
pub red: u32,
pub green: u32,
pub blue: u32,
pub reserved: u32,
}
Expand description
Bitmask used to indicate which bits of a pixel represent a given color.
Fields§
§red: u32
The bits indicating the red channel.
green: u32
The bits indicating the green channel.
blue: u32
The bits indicating the blue channel.
reserved: u32
The reserved bits, which are ignored by the video hardware.
Trait Implementations§
source§impl Clone for PixelBitmask
impl Clone for PixelBitmask
source§fn clone(&self) -> PixelBitmask
fn clone(&self) -> PixelBitmask
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 PixelBitmask
impl Debug for PixelBitmask
source§impl Default for PixelBitmask
impl Default for PixelBitmask
source§fn default() -> PixelBitmask
fn default() -> PixelBitmask
Returns the “default value” for a type. Read more
source§impl Hash for PixelBitmask
impl Hash for PixelBitmask
source§impl Ord for PixelBitmask
impl Ord for PixelBitmask
source§fn cmp(&self, other: &PixelBitmask) -> Ordering
fn cmp(&self, other: &PixelBitmask) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for PixelBitmask
impl PartialEq for PixelBitmask
source§impl PartialOrd for PixelBitmask
impl PartialOrd for PixelBitmask
impl Copy for PixelBitmask
impl Eq for PixelBitmask
impl StructuralPartialEq for PixelBitmask
Auto Trait Implementations§
impl Freeze for PixelBitmask
impl RefUnwindSafe for PixelBitmask
impl Send for PixelBitmask
impl Sync for PixelBitmask
impl Unpin for PixelBitmask
impl UnwindSafe for PixelBitmask
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
)