#[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 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§impl PartialOrd for FramebufferColor
impl PartialOrd for FramebufferColor
Source§fn partial_cmp(&self, other: &FramebufferColor) -> Option<Ordering>
fn partial_cmp(&self, other: &FramebufferColor) -> Option<Ordering>
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§
§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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)