pub struct WinSize {
pub rows: u16,
pub cols: u16,
pub pixel_width: u16,
pub pixel_height: u16,
}Expand description
The shape of a terminal: its rows and columns, and its pixels where the OS names them.
Fields§
§rows: u16§cols: u16§pixel_width: u16§pixel_height: u16Trait Implementations§
impl Copy for WinSize
impl Eq for WinSize
impl StructuralPartialEq for WinSize
Auto Trait Implementations§
impl Forget for WinSize
impl Freeze for WinSize
impl Move 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