AsciiControl

Enum AsciiControl 

Source
#[repr(u8)]
pub enum AsciiControl {
Show 33 variants Nul = 0, Soh = 1, Stx = 2, Etx = 3, Eot = 4, Enq = 5, Ack = 6, Bel = 7, Bs = 8, Tab = 9, Lf = 10, Vt = 11, Ff = 12, Cr = 13, So = 14, Si = 15, Dle = 16, Dc1 = 17, Dc2 = 18, Dc3 = 19, Dc4 = 20, Nak = 21, Syn = 22, Etb = 23, Can = 24, Em = 25, Sub = 26, Esc = 27, Fs = 28, Gs = 29, Rs = 30, Us = 31, Del = 127,
}
Expand description

ASCII control codes.

Variants§

§

Nul = 0

§

Soh = 1

§

Stx = 2

§

Etx = 3

§

Eot = 4

§

Enq = 5

§

Ack = 6

§

Bel = 7

§

Bs = 8

§

Tab = 9

§

Lf = 10

§

Vt = 11

§

Ff = 12

§

Cr = 13

§

So = 14

§

Si = 15

§

Dle = 16

§

Dc1 = 17

§

Dc2 = 18

§

Dc3 = 19

§

Dc4 = 20

§

Nak = 21

§

Syn = 22

§

Etb = 23

§

Can = 24

§

Em = 25

§

Sub = 26

§

Esc = 27

§

Fs = 28

§

Gs = 29

§

Rs = 30

§

Us = 31

§

Del = 127

Trait Implementations§

Source§

impl Debug for AsciiControl

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for AsciiControl

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromStr for AsciiControl

Source§

type Err = ()

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl TryFrom<char> for AsciiControl

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(value: char) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<u8> for AsciiControl

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(value: u8) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.