#[repr(C)]pub struct FramebufferColor {
pub red: u8,
pub green: u8,
pub blue: u8,
}
Expand description
A framebuffer color descriptor in the palette.
On the ABI level, multiple values are consecutively without padding bytes. The spec is not precise in that regard, but looking at Limine’s and GRUB’s source code confirm that.
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 duplicate 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 for FramebufferColor
impl PartialEq for FramebufferColor
Source§impl PartialOrd for FramebufferColor
impl PartialOrd for FramebufferColor
impl Copy for FramebufferColor
impl Eq for FramebufferColor
impl StructuralPartialEq for FramebufferColor
Auto Trait Implementations§
impl Freeze for FramebufferColor
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