pub struct WindowSizeMsg {
pub width: usize,
pub height: usize,
}Expand description
WindowSizeMsg is used to report the terminal size. It’s sent to update
once initially and then on every terminal resize. Note that Windows does not
have support for reporting when resizes occur as it does not support the
SIGWINCH signal.
Fields§
§width: usizeWidth of terminal in columns.
height: usizeHeight of terminal in rows.
Trait Implementations§
Source§impl Clone for WindowSizeMsg
impl Clone for WindowSizeMsg
Source§fn clone(&self) -> WindowSizeMsg
fn clone(&self) -> WindowSizeMsg
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 WindowSizeMsg
Source§impl Debug for WindowSizeMsg
impl Debug for WindowSizeMsg
impl Eq for WindowSizeMsg
Source§impl PartialEq for WindowSizeMsg
impl PartialEq for WindowSizeMsg
impl StructuralPartialEq for WindowSizeMsg
Auto Trait Implementations§
impl Freeze for WindowSizeMsg
impl RefUnwindSafe for WindowSizeMsg
impl Send for WindowSizeMsg
impl Sync for WindowSizeMsg
impl Unpin for WindowSizeMsg
impl UnsafeUnpin for WindowSizeMsg
impl UnwindSafe for WindowSizeMsg
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