Enum CharEscape

enum CharEscape

Represents a character escape code in a type-safe manner.

Variants

Quote

An escaped quote "

ReverseSolidus

An escaped reverse solidus \

Solidus

An escaped solidus /

Backspace

An escaped backspace character (usually escaped as \b)

FormFeed

An escaped form feed character (usually escaped as \f)

LineFeed

An escaped line feed character (usually escaped as \n)

CarriageReturn

An escaped carriage return character (usually escaped as \r)

Tab

An escaped tab character (usually escaped as \t)

AsciiControl(u8)

An escaped ASCII plane control character (usually escaped as \u00XX where XX are two hex characters)

Implementations

impl Freeze for CharEscape

impl RefUnwindSafe for CharEscape

impl Send for CharEscape

impl Sync for CharEscape

impl Unpin for CharEscape

impl UnwindSafe for CharEscape

impl<T> Any for CharEscape

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for CharEscape

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for CharEscape

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

impl<T> From for CharEscape

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for CharEscape

fn into(self: Self) -> U

Calls U::from(self).

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

impl<T, U> TryFrom for CharEscape

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

impl<T, U> TryInto for CharEscape

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