Struct text_terminal::ScreenSize
source · pub struct ScreenSize {
pub num_columns: Column,
pub num_rows: Row,
}
Expand description
The size of a terminal screen, expressed as the number of columns (x dimension) by the number of rows (y dimension).
The default screen size is 80 columns by 25 rows.
Fields§
§num_columns: Column
The width of the screen viewport in number of columns (x dimension).
num_rows: Row
The height of the screen viewport in number of rows (y dimension).
Implementations§
source§impl ScreenSize
impl ScreenSize
Trait Implementations§
source§impl Clone for ScreenSize
impl Clone for ScreenSize
source§fn clone(&self) -> ScreenSize
fn clone(&self) -> ScreenSize
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 ScreenSize
impl Debug for ScreenSize
source§impl Default for ScreenSize
impl Default for ScreenSize
source§impl PartialEq<ScreenSize> for ScreenSize
impl PartialEq<ScreenSize> for ScreenSize
source§fn eq(&self, other: &ScreenSize) -> bool
fn eq(&self, other: &ScreenSize) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ScreenSize
impl Eq for ScreenSize
impl StructuralEq for ScreenSize
impl StructuralPartialEq for ScreenSize
Auto Trait Implementations§
impl RefUnwindSafe for ScreenSize
impl Send for ScreenSize
impl Sync for ScreenSize
impl Unpin for ScreenSize
impl UnwindSafe for ScreenSize
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