pub struct ConsoleSize {
pub width: u16,
pub height: u16,
}Expand description
Terminal dimensions for PTY-backed workloads.
Fields§
§width: u16Width in terminal columns.
height: u16Height in terminal rows.
Implementations§
Source§impl ConsoleSize
impl ConsoleSize
pub const DEFAULT_WIDTH: u16 = 80
pub const DEFAULT_HEIGHT: u16 = 24
Trait Implementations§
Source§impl Clone for ConsoleSize
impl Clone for ConsoleSize
Source§fn clone(&self) -> ConsoleSize
fn clone(&self) -> ConsoleSize
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ConsoleSize
Source§impl Debug for ConsoleSize
impl Debug for ConsoleSize
Source§impl Default for ConsoleSize
impl Default for ConsoleSize
impl Eq for ConsoleSize
Source§impl PartialEq for ConsoleSize
impl PartialEq for ConsoleSize
Source§fn eq(&self, other: &ConsoleSize) -> bool
fn eq(&self, other: &ConsoleSize) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConsoleSize
Auto Trait Implementations§
impl Freeze for ConsoleSize
impl RefUnwindSafe for ConsoleSize
impl Send for ConsoleSize
impl Sync for ConsoleSize
impl Unpin for ConsoleSize
impl UnsafeUnpin for ConsoleSize
impl UnwindSafe for ConsoleSize
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