Enum multiboot2::FramebufferType
source · pub enum FramebufferType<'a> {
Indexed {
palette: &'a [FramebufferColor],
},
RGB {
red: FramebufferField,
green: FramebufferField,
blue: FramebufferField,
},
Text,
}
Expand description
The type of framebuffer.
Variants§
Indexed
Fields
§
palette: &'a [FramebufferColor]
Indexed color.
RGB
Direct RGB color.
Text
EGA Text.
In this case the framebuffer width and height are expressed in characters and not in pixels.
The bpp is equal 16 (16 bits per character) and pitch is expressed in bytes per text line.
Trait Implementations§
source§impl<'a> Clone for FramebufferType<'a>
impl<'a> Clone for FramebufferType<'a>
source§fn clone(&self) -> FramebufferType<'a>
fn clone(&self) -> FramebufferType<'a>
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<'a> Debug for FramebufferType<'a>
impl<'a> Debug for FramebufferType<'a>
source§impl<'a> Hash for FramebufferType<'a>
impl<'a> Hash for FramebufferType<'a>
source§impl<'a> Ord for FramebufferType<'a>
impl<'a> Ord for FramebufferType<'a>
source§fn cmp(&self, other: &FramebufferType<'a>) -> Ordering
fn cmp(&self, other: &FramebufferType<'a>) -> 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<'a> PartialEq<FramebufferType<'a>> for FramebufferType<'a>
impl<'a> PartialEq<FramebufferType<'a>> for FramebufferType<'a>
source§fn eq(&self, other: &FramebufferType<'a>) -> bool
fn eq(&self, other: &FramebufferType<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd<FramebufferType<'a>> for FramebufferType<'a>
impl<'a> PartialOrd<FramebufferType<'a>> for FramebufferType<'a>
source§fn partial_cmp(&self, other: &FramebufferType<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &FramebufferType<'a>) -> 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<'a> Eq for FramebufferType<'a>
impl<'a> StructuralEq for FramebufferType<'a>
impl<'a> StructuralPartialEq for FramebufferType<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for FramebufferType<'a>
impl<'a> Send for FramebufferType<'a>
impl<'a> Sync for FramebufferType<'a>
impl<'a> Unpin for FramebufferType<'a>
impl<'a> UnwindSafe for FramebufferType<'a>
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