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
sourceimpl<'a> Debug for FramebufferType<'a>
impl<'a> Debug for FramebufferType<'a>
sourceimpl<'a> PartialEq<FramebufferType<'a>> for FramebufferType<'a>
impl<'a> PartialEq<FramebufferType<'a>> for FramebufferType<'a>
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &FramebufferType<'a>) -> bool
fn ne(&self, other: &FramebufferType<'a>) -> bool
This method tests for !=
.
impl<'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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more