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§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§impl PartialEq for FramebufferColor
impl PartialEq 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 for FramebufferColor
impl PartialOrd for FramebufferColor
impl 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§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
source§impl<T> TagTrait for Twhere
T: Pointee<Metadata = ()>,
impl<T> TagTrait for Twhere
T: Pointee<Metadata = ()>,
source§fn dst_size(_: &Tag) -> <T as Pointee>::Metadata
fn dst_size(_: &Tag) -> <T as Pointee>::Metadata
Returns the amount of items in the dynamically sized portion of the
DST. Note that this is not the amount of bytes. So if the dynamically
sized portion is 16 bytes in size and each element is 4 bytes big, then
this function must return 4.
source§unsafe fn from_base_tag<'a>(tag: &Tag) -> &'a Self
unsafe fn from_base_tag<'a>(tag: &Tag) -> &'a Self
Creates a reference to a (dynamically sized) tag type in a safe way.
DST tags need to implement a proper
Self::dst_size
implementation. Read more