pub struct FrameBuffer { /* private fields */ }Implementations§
Source§impl FrameBuffer
impl FrameBuffer
pub fn new(width: u16, height: u16) -> Self
pub fn width(&self) -> u16
pub fn height(&self) -> u16
pub fn is_blank(&self) -> bool
pub fn get(&self, x: u16, y: u16) -> Cell
pub fn set(&mut self, x: u16, y: u16, cell: Cell)
pub fn fill_rect(&mut self, rect: Rect, symbol: char, style: Style)
pub fn write_str(&mut self, x: u16, y: u16, text: &str, style: Style)
pub fn write_clipped( &mut self, rect: Rect, offset_x: u16, offset_y: u16, text: &str, style: Style, )
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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