pub struct Screen { /* private fields */ }Implementations
sourceimpl Screen
impl Screen
pub fn new(width: u16, height: u16) -> Self
pub fn clear(&mut self)
pub fn resize(&mut self, width: u16, height: u16)
pub fn width(&self) -> u16
pub fn height(&self) -> u16
pub fn get(&self, col: u16, row: u16) -> Option<&StyledContent<String>>
pub fn get_idx(&self, idx: usize) -> Option<&StyledContent<String>>
pub fn set(
&mut self,
col: u16,
row: u16,
content: impl Into<Option<StyledContent<String>>>
)
pub fn set_idx(
&mut self,
idx: usize,
content: impl Into<Option<StyledContent<String>>>
)
pub fn symbols<'a>(
&'a self
) -> impl Iterator<Item = (Point, &'a StyledContent<String>)> + 'a
pub fn print(&mut self, out: &mut impl Write) -> Result<()>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Screen
impl Send for Screen
impl Sync for Screen
impl Unpin for Screen
impl UnwindSafe for Screen
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more