Struct uefi_raw::protocol::console::PixelBitmask
source · #[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: u32The bits indicating the red channel.
green: u32The bits indicating the green channel.
blue: u32The bits indicating the blue channel.
reserved: u32The 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§fn eq(&self, other: &PixelBitmask) -> bool
fn eq(&self, other: &PixelBitmask) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for PixelBitmask
impl PartialOrd for PixelBitmask
source§fn partial_cmp(&self, other: &PixelBitmask) -> Option<Ordering>
fn partial_cmp(&self, other: &PixelBitmask) -> Option<Ordering>
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 PixelBitmask
impl Eq for PixelBitmask
impl StructuralEq for PixelBitmask
impl StructuralPartialEq for PixelBitmask
Auto Trait Implementations§
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