#[repr(C)]pub struct WindowSize {
pub ws_row: ushort,
pub ws_col: ushort,
pub ws_xpixel: ushort,
pub ws_ypixel: ushort,
}
Expand description
Represents the size of the window (or equivalent) that a tty is presented through.
Fields§
§ws_row: ushort
The number of rows in the window.
ws_col: ushort
The number of columns in the window.
ws_xpixel: ushort
Not actually used.
ws_ypixel: ushort
Not actually used.
Trait Implementations§
Source§impl Clone for WindowSize
impl Clone for WindowSize
Source§fn clone(&self) -> WindowSize
fn clone(&self) -> WindowSize
Returns a copy 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 WindowSize
impl Debug for WindowSize
impl Copy for WindowSize
Auto Trait Implementations§
impl Freeze for WindowSize
impl RefUnwindSafe for WindowSize
impl Send for WindowSize
impl Sync for WindowSize
impl Unpin for WindowSize
impl UnwindSafe for WindowSize
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