pub struct Framebuffer { /* private fields */ }Expand description
The framebuffer structure, which provides basic 5 elements.
- Framebuffer base address;
- Framebuffer height;
- Framebuffer width;
- Framebuffer BPB
- Framebuffer pitch
You can use it to do output/graphics operations.
If you want to compute the offset, you can use this:
offset = x * bpp + y * pitch
Implementations§
Source§impl Framebuffer
impl Framebuffer
Trait Implementations§
Source§impl Clone for Framebuffer
impl Clone for Framebuffer
Source§fn clone(&self) -> Framebuffer
fn clone(&self) -> Framebuffer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Default for Framebuffer
impl Default for Framebuffer
Source§fn default() -> Framebuffer
fn default() -> Framebuffer
Returns the “default value” for a type. Read more
Source§impl PartialEq for Framebuffer
impl PartialEq for Framebuffer
Source§fn eq(&self, other: &Framebuffer) -> bool
fn eq(&self, other: &Framebuffer) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for Framebuffer
impl Eq for Framebuffer
impl StructuralPartialEq for Framebuffer
Auto Trait Implementations§
impl Freeze for Framebuffer
impl RefUnwindSafe for Framebuffer
impl Send for Framebuffer
impl Sync for Framebuffer
impl Unpin for Framebuffer
impl UnsafeUnpin 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