pub struct WinSize {
pub rows: u16,
pub cols: u16,
}Expand description
Size of the terminal window in character cells.
Both fields are guaranteed non-zero: a terminal reporting zero is clamped to the conventional 80x24, because the renderer divides by the column count.
Fields§
§rows: u16Number of rows.
cols: u16Number of columns.
Implementations§
Trait Implementations§
impl Copy for WinSize
impl Eq for WinSize
impl StructuralPartialEq for WinSize
Auto Trait Implementations§
impl Freeze for WinSize
impl RefUnwindSafe for WinSize
impl Send for WinSize
impl Sync for WinSize
impl Unpin for WinSize
impl UnsafeUnpin for WinSize
impl UnwindSafe for WinSize
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