pub struct Winsize {
pub row: u16,
pub col: u16,
pub xpixel: u16,
pub ypixel: u16,
}Expand description
Terminal dimensions in cells and pixels.
row and col are the cell dimensions used for terminal layout. xpixel
and ypixel are optional pixel dimensions; they are 0 when the platform
or terminal does not report pixel size.
Fields§
§row: u16Number of rows (height in cells).
col: u16Number of columns (width in cells).
xpixel: u16Width in pixels, or 0 when unknown.
ypixel: u16Height in pixels, or 0 when unknown.
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