pub struct Goto(pub u16, pub u16);
Expand description
Goto some position ((1,1)-based).
§Why one-based?
ANSI escapes are very poorly designed, and one of the many odd aspects is being one-based. This can be quite strange at first, but it is not that big of an obstruction once you get used to it.
§Example
extern crate termion;
fn main() {
print!("{}{}Stuff", termion::clear::All, termion::cursor::Goto(5, 3));
}
Tuple Fields§
§0: u16
§1: u16
Trait Implementations§
impl Copy for Goto
impl Eq for Goto
impl StructuralPartialEq for Goto
Auto Trait Implementations§
impl Freeze for Goto
impl RefUnwindSafe for Goto
impl Send for Goto
impl Sync for Goto
impl Unpin for Goto
impl UnwindSafe for Goto
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)