#[repr(C)]pub struct KernelWinsize {
pub ws_row: u16,
pub ws_col: u16,
pub ws_xpixel: u16,
pub ws_ypixel: u16,
}Expand description
Terminal window size, matching the C struct winsize layout.
Fields§
§ws_row: u16§ws_col: u16§ws_xpixel: u16§ws_ypixel: u16Implementations§
Source§impl KernelWinsize
impl KernelWinsize
Sourcepub const fn default_console() -> Self
pub const fn default_console() -> Self
Default 80x24 terminal (standard VT100 size).
Trait Implementations§
Source§impl Clone for KernelWinsize
impl Clone for KernelWinsize
Source§fn clone(&self) -> KernelWinsize
fn clone(&self) -> KernelWinsize
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for KernelWinsize
Auto Trait Implementations§
impl Freeze for KernelWinsize
impl RefUnwindSafe for KernelWinsize
impl Send for KernelWinsize
impl Sync for KernelWinsize
impl Unpin for KernelWinsize
impl UnwindSafe for KernelWinsize
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)