Struct multiboot2::FramebufferColor
source · #[repr(C)]pub struct FramebufferColor {
pub red: u8,
pub green: u8,
pub blue: u8,
}
Expand description
A framebuffer color descriptor in the palette.
Fields§
§red: u8
The Red component of the color.
green: u8
The Green component of the color.
blue: u8
The Blue component of the color.
Trait Implementations§
source§impl Clone for FramebufferColor
impl Clone for FramebufferColor
source§fn clone(&self) -> FramebufferColor
fn clone(&self) -> FramebufferColor
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 FramebufferColor
impl Debug for FramebufferColor
source§impl Hash for FramebufferColor
impl Hash for FramebufferColor
source§impl Ord for FramebufferColor
impl Ord for FramebufferColor
source§fn cmp(&self, other: &FramebufferColor) -> Ordering
fn cmp(&self, other: &FramebufferColor) -> 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<FramebufferColor> for FramebufferColor
impl PartialEq<FramebufferColor> for FramebufferColor
source§fn eq(&self, other: &FramebufferColor) -> bool
fn eq(&self, other: &FramebufferColor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<FramebufferColor> for FramebufferColor
impl PartialOrd<FramebufferColor> for FramebufferColor
source§fn partial_cmp(&self, other: &FramebufferColor) -> Option<Ordering>
fn partial_cmp(&self, other: &FramebufferColor) -> 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 FramebufferColor
impl Eq for FramebufferColor
impl StructuralEq for FramebufferColor
impl StructuralPartialEq for FramebufferColor
Auto Trait Implementations§
impl RefUnwindSafe for FramebufferColor
impl Send for FramebufferColor
impl Sync for FramebufferColor
impl Unpin for FramebufferColor
impl UnwindSafe for FramebufferColor
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