pub enum ControlType {
}Expand description
Non-printable control codes which typically translate to ANSI sequences.
Port of rich.segment.ControlType. The parameterized variants carry their
integer arguments so a Control can be built and its escape string
derived deterministically.
Variants§
Bell
CarriageReturn
Home
Clear
ShowCursor
HideCursor
EnableAltScreen
DisableAltScreen
CursorUp(u32)
CursorDown(u32)
CursorForward(u32)
CursorBackward(u32)
CursorMoveToColumn(u32)
Move to a zero-based column (rendered as column + 1).
CursorMoveTo(u32, u32)
Move to an absolute zero-based (x, y) (rendered as y + 1;x + 1).
EraseInLine(u32)
Erase in line with the given mode parameter.
Trait Implementations§
Source§impl Clone for ControlType
impl Clone for ControlType
Source§fn clone(&self) -> ControlType
fn clone(&self) -> ControlType
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 ControlType
Source§impl Debug for ControlType
impl Debug for ControlType
impl Eq for ControlType
Source§impl PartialEq for ControlType
impl PartialEq for ControlType
impl StructuralPartialEq for ControlType
Auto Trait Implementations§
impl Freeze for ControlType
impl RefUnwindSafe for ControlType
impl Send for ControlType
impl Sync for ControlType
impl Unpin for ControlType
impl UnsafeUnpin for ControlType
impl UnwindSafe for ControlType
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.