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: u16Trait Implementations§
Source§impl Clone for ResizeTextArea
impl Clone for ResizeTextArea
Source§fn clone(&self) -> ResizeTextArea
fn clone(&self) -> ResizeTextArea
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 ResizeTextArea
Source§impl Debug for ResizeTextArea
impl Debug for ResizeTextArea
Source§impl Display for ResizeTextArea
impl Display for ResizeTextArea
impl Eq for ResizeTextArea
Source§impl Hash for ResizeTextArea
impl Hash for ResizeTextArea
Source§impl PartialEq for ResizeTextArea
impl PartialEq for ResizeTextArea
Source§fn eq(&self, other: &ResizeTextArea) -> bool
fn eq(&self, other: &ResizeTextArea) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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