Enum CharEscape
pub 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
\u00XXwhereXXare two hex characters)
Auto Trait Implementations
impl Freeze for CharEscape
impl RefUnwindSafe for CharEscape
impl Send for CharEscape
impl Sync for CharEscape
impl Unpin for CharEscape
impl UnsafeUnpin for CharEscape
impl UnwindSafe for CharEscape
Blanket Implementations
impl<T> Any for CharEscape
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for CharEscape
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for CharEscape
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for CharEscape
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for CharEscape
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for CharEscape
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for CharEscape
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>