pub struct ResizeTextArea(pub u16, pub u16);
Expand description
Resizes the text area to the given width and height in characters.
§Examples
use std::io::{stdout, Write};
use anes::ResizeTextArea;
let mut stdout = stdout();
// Resize the terminal to 80x25
write!(stdout, "{}", ResizeTextArea(80, 25));
Tuple Fields§
§0: u16
§1: u16
Trait Implementations§
Source§impl Clone for ResizeTextArea
impl Clone for ResizeTextArea
Source§fn clone(&self) -> ResizeTextArea
fn clone(&self) -> ResizeTextArea
Returns a copy 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 ResizeTextArea
impl Debug for ResizeTextArea
Source§impl Display for ResizeTextArea
impl Display for ResizeTextArea
Source§impl Hash for ResizeTextArea
impl Hash for ResizeTextArea
Source§impl PartialEq for ResizeTextArea
impl PartialEq for ResizeTextArea
impl Copy for ResizeTextArea
impl Eq for ResizeTextArea
impl StructuralPartialEq for ResizeTextArea
Auto Trait Implementations§
impl Freeze for ResizeTextArea
impl RefUnwindSafe for ResizeTextArea
impl Send for ResizeTextArea
impl Sync for ResizeTextArea
impl Unpin for ResizeTextArea
impl UnwindSafe for ResizeTextArea
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 4 bytes