pub struct TerminalPixels {
pub width: u16,
pub height: u16,
}Expand description
Terminal pixel dimensions reported by terminals that expose TIOCGWINSZ
pixel fields.
Fields§
§width: u16The terminal width in pixels.
height: u16The terminal height in pixels.
Implementations§
Source§impl TerminalPixels
impl TerminalPixels
Sourcepub const fn new(width: u16, height: u16) -> TerminalPixels
pub const fn new(width: u16, height: u16) -> TerminalPixels
Creates terminal pixel dimensions.
Trait Implementations§
Source§impl Clone for TerminalPixels
impl Clone for TerminalPixels
Source§fn clone(&self) -> TerminalPixels
fn clone(&self) -> TerminalPixels
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 TerminalPixels
Source§impl Debug for TerminalPixels
impl Debug for TerminalPixels
Source§impl Default for TerminalPixels
impl Default for TerminalPixels
Source§fn default() -> TerminalPixels
fn default() -> TerminalPixels
Returns the “default value” for a type. Read more
impl Eq for TerminalPixels
Source§impl Hash for TerminalPixels
impl Hash for TerminalPixels
Source§impl PartialEq for TerminalPixels
impl PartialEq for TerminalPixels
Source§fn eq(&self, other: &TerminalPixels) -> bool
fn eq(&self, other: &TerminalPixels) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TerminalPixels
Auto Trait Implementations§
impl Freeze for TerminalPixels
impl RefUnwindSafe for TerminalPixels
impl Send for TerminalPixels
impl Sync for TerminalPixels
impl Unpin for TerminalPixels
impl UnsafeUnpin for TerminalPixels
impl UnwindSafe for TerminalPixels
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