pub struct TerminalHeight { /* private fields */ }Expand description
A nonzero terminal height in rows.
Implementations§
Source§impl TerminalHeight
impl TerminalHeight
Sourcepub const fn new(rows: u16) -> Result<TerminalHeight, TerminalDimensionError>
pub const fn new(rows: u16) -> Result<TerminalHeight, TerminalDimensionError>
Trait Implementations§
Source§impl Clone for TerminalHeight
impl Clone for TerminalHeight
Source§fn clone(&self) -> TerminalHeight
fn clone(&self) -> TerminalHeight
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 moreSource§impl Debug for TerminalHeight
impl Debug for TerminalHeight
Source§impl Hash for TerminalHeight
impl Hash for TerminalHeight
Source§impl Ord for TerminalHeight
impl Ord for TerminalHeight
Source§fn cmp(&self, other: &TerminalHeight) -> Ordering
fn cmp(&self, other: &TerminalHeight) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TerminalHeight
impl PartialEq for TerminalHeight
Source§fn eq(&self, other: &TerminalHeight) -> bool
fn eq(&self, other: &TerminalHeight) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for TerminalHeight
impl PartialOrd for TerminalHeight
impl Copy for TerminalHeight
impl Eq for TerminalHeight
impl StructuralPartialEq for TerminalHeight
Auto Trait Implementations§
impl Freeze for TerminalHeight
impl RefUnwindSafe for TerminalHeight
impl Send for TerminalHeight
impl Sync for TerminalHeight
impl Unpin for TerminalHeight
impl UnsafeUnpin for TerminalHeight
impl UnwindSafe for TerminalHeight
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