pub enum ControlChar {
Show 31 variants
CtrlA,
CtrlB,
CtrlC,
CtrlD,
CtrlE,
CtrlF,
CtrlG,
CtrlH,
CtrlI,
CtrlJ,
CtrlK,
CtrlL,
CtrlM,
CtrlN,
CtrlO,
CtrlP,
CtrlQ,
CtrlR,
CtrlS,
CtrlT,
CtrlU,
CtrlV,
CtrlW,
CtrlX,
CtrlY,
CtrlZ,
Escape,
CtrlBackslash,
CtrlBracket,
CtrlCaret,
CtrlUnderscore,
}Expand description
Control characters that can be sent to a terminal.
Variants§
CtrlA
Ctrl+A (SOH)
CtrlB
Ctrl+B (STX)
CtrlC
Ctrl+C (ETX) - Interrupt
CtrlD
Ctrl+D (EOT) - End of transmission / EOF
CtrlE
Ctrl+E (ENQ)
CtrlF
Ctrl+F (ACK)
CtrlG
Ctrl+G (BEL) - Bell
CtrlH
Ctrl+H (BS) - Backspace
CtrlI
Ctrl+I (HT) - Tab
CtrlJ
Ctrl+J (LF) - Line feed
CtrlK
Ctrl+K (VT) - Vertical tab
CtrlL
Ctrl+L (FF) - Form feed / Clear screen
CtrlM
Ctrl+M (CR) - Carriage return
CtrlN
Ctrl+N (SO)
CtrlO
Ctrl+O (SI)
CtrlP
Ctrl+P (DLE)
CtrlQ
Ctrl+Q (DC1) - XON / Resume
CtrlR
Ctrl+R (DC2)
CtrlS
Ctrl+S (DC3) - XOFF / Pause
CtrlT
Ctrl+T (DC4)
CtrlU
Ctrl+U (NAK) - Kill line
CtrlV
Ctrl+V (SYN)
CtrlW
Ctrl+W (ETB) - Kill word
CtrlX
Ctrl+X (CAN)
CtrlY
Ctrl+Y (EM)
CtrlZ
Ctrl+Z (SUB) - Suspend
Escape
Escape
CtrlBackslash
Ctrl+\ (FS) - Quit
CtrlBracket
Ctrl+] (GS)
CtrlCaret
Ctrl+^ (RS)
CtrlUnderscore
Ctrl+_ (US)
Implementations§
Trait Implementations§
Source§impl Clone for ControlChar
impl Clone for ControlChar
Source§fn clone(&self) -> ControlChar
fn clone(&self) -> ControlChar
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 ControlChar
impl Debug for ControlChar
Source§impl From<ControlChar> for char
impl From<ControlChar> for char
Source§fn from(c: ControlChar) -> Self
fn from(c: ControlChar) -> Self
Converts to this type from the input type.
Source§impl From<ControlChar> for u8
impl From<ControlChar> for u8
Source§fn from(c: ControlChar) -> Self
fn from(c: ControlChar) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ControlChar
impl PartialEq for ControlChar
impl Copy for ControlChar
impl Eq for ControlChar
impl StructuralPartialEq for ControlChar
Auto Trait Implementations§
impl Freeze for ControlChar
impl RefUnwindSafe for ControlChar
impl Send for ControlChar
impl Sync for ControlChar
impl Unpin for ControlChar
impl UnwindSafe for ControlChar
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