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§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§impl<'a> PartialEq for FramebufferType<'a>
impl<'a> PartialEq 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 for FramebufferType<'a>
impl<'a> PartialOrd for FramebufferType<'a>
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§
§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