pub struct ScreenSize {
pub rows: usize,
pub cols: usize,
pub xpixel: usize,
pub ypixel: usize,
}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: usizeThe number of rows of text
cols: usizeThe number of columns per row
xpixel: usizeThe width of a cell in pixels. Some implementations never set this to anything other than zero.
ypixel: usizeThe height of a cell in pixels. Some implementations never set this to anything other than zero.
Trait Implementations§
Source§impl Clone for ScreenSize
impl Clone for ScreenSize
Source§fn clone(&self) -> ScreenSize
fn clone(&self) -> ScreenSize
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 moreSource§impl Debug for ScreenSize
impl Debug for ScreenSize
Source§impl PartialEq for ScreenSize
impl PartialEq for ScreenSize
impl Copy for ScreenSize
impl Eq for ScreenSize
impl StructuralPartialEq for ScreenSize
Auto Trait Implementations§
impl Freeze for ScreenSize
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