pub struct DisplayBuffer { /* private fields */ }Expand description
§Description
A display buffer is the buffer that holds all of the information about what characters to display to the screen
Implementations§
Source§impl DisplayBuffer
impl DisplayBuffer
Sourcepub fn new(dimensions: Dimensions) -> Self
pub fn new(dimensions: Dimensions) -> Self
§Description
Creates a new display buffer with the given dimensions
§Arguments
dimensions: Dimensions - The dimensions of the display buffer
§Returns
DisplayBuffer - A display buffer with the specified attributes
Sourcepub fn get_height(&self) -> u32
pub fn get_height(&self) -> u32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DisplayBuffer
impl RefUnwindSafe for DisplayBuffer
impl Send for DisplayBuffer
impl Sync for DisplayBuffer
impl Unpin for DisplayBuffer
impl UnwindSafe for DisplayBuffer
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