Struct termwiz::terminal::ScreenSize
source · [−]Expand description
Represents the size of the terminal screen. The number of rows and columns of character cells are expressed. Some implementations populate the size of those cells in pixels.
Fields
rows: usize
The number of rows of text
cols: usize
The number of columns per row
xpixel: usize
The width of a cell in pixels. Some implementations never set this to anything other than zero.
ypixel: usize
The height of a cell in pixels. Some implementations never set this to anything other than zero.
Trait Implementations
sourceimpl Clone for ScreenSize
impl Clone for ScreenSize
sourcefn clone(&self) -> ScreenSize
fn clone(&self) -> ScreenSize
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ScreenSize
impl Debug for ScreenSize
sourceimpl PartialEq<ScreenSize> for ScreenSize
impl PartialEq<ScreenSize> for ScreenSize
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ScreenSize) -> bool
fn ne(&self, other: &ScreenSize) -> bool
This method tests for !=
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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