pub enum FramebufferType<'a> {
Indexed {
palette: &'a [FramebufferColor],
},
RGB {
red: FramebufferField,
green: FramebufferField,
blue: FramebufferField,
},
Text,
}
Expand description
Structured accessory to the provided framebuffer type that is not ABI compatible.
Variants§
Indexed
Indexed color.
Fields
§
palette: &'a [FramebufferColor]
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§impl<'a> PartialOrd for FramebufferType<'a>
impl<'a> PartialOrd for FramebufferType<'a>
Source§fn partial_cmp(&self, other: &FramebufferType<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &FramebufferType<'a>) -> Option<Ordering>
impl<'a> Eq for FramebufferType<'a>
impl<'a> StructuralPartialEq for FramebufferType<'a>
Auto Trait Implementations§
impl<'a> Freeze for FramebufferType<'a>
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> 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
)