#[repr(C)]pub struct WinSize {
pub ws_row: u16,
pub ws_col: u16,
pub ws_xpixel: u16,
pub ws_ypixel: u16,
}Expand description
终端窗口大小(用于 TIOCGWINSZ/TIOCSWINSZ)
Fields§
§ws_row: u16窗口行数(字符)
ws_col: u16窗口列数(字符)
ws_xpixel: u16窗口宽度(像素,通常未使用)
ws_ypixel: u16窗口高度(像素,通常未使用)
Trait Implementations§
impl Copy 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 UnwindSafe for WinSize
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)