Enum vga::vga::FrameBuffer
source · #[repr(usize)]pub enum FrameBuffer {
GraphicsMode(usize),
CgaMode(usize),
MdaMode(usize),
}
Expand description
Represents the starting address of the frame buffer for various video modes.
Variants§
GraphicsMode(usize)
The starting address for graphics modes.
CgaMode(usize)
The starting address for color text modes.
MdaMode(usize)
The starting address for monochrome text modes.
Trait Implementations§
source§impl Clone for FrameBuffer
impl Clone for FrameBuffer
source§fn clone(&self) -> FrameBuffer
fn clone(&self) -> FrameBuffer
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 Debug for FrameBuffer
impl Debug for FrameBuffer
source§impl From<FrameBuffer> for usize
impl From<FrameBuffer> for usize
source§fn from(value: FrameBuffer) -> usize
fn from(value: FrameBuffer) -> usize
Converts to this type from the input type.
impl Copy for FrameBuffer
Auto Trait Implementations§
impl RefUnwindSafe for FrameBuffer
impl Send for FrameBuffer
impl Sync for FrameBuffer
impl Unpin for FrameBuffer
impl UnwindSafe for FrameBuffer
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