pub struct ResizeContext {
pub size: TerminalSize,
pub previous: Option<TerminalSize>,
}Expand description
Context passed to resize hook callbacks.
Fields§
§size: TerminalSizeNew terminal size.
previous: Option<TerminalSize>Previous terminal size (if known).
Trait Implementations§
Source§impl Clone for ResizeContext
impl Clone for ResizeContext
Source§fn clone(&self) -> ResizeContext
fn clone(&self) -> ResizeContext
Returns a duplicate of the value. Read more
1.0.0 · 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 ResizeContext
impl Debug for ResizeContext
impl Copy for ResizeContext
Auto Trait Implementations§
impl Freeze for ResizeContext
impl RefUnwindSafe for ResizeContext
impl Send for ResizeContext
impl Sync for ResizeContext
impl Unpin for ResizeContext
impl UnwindSafe for ResizeContext
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