[][src]Enum quoted_string::spec::State

pub enum State<T: Copy + Eq + Debug> {
    Start,
    Normal,
    Failed,
    QPStart,
    Custom(T),
    End,
}

State used when parsing a quoted string

Variants

Start

The initial state

Normal

The normal state

Failed

Failed as it e.g. hit an invalid char

QPStart

start of a quoted-pair e.g. the \ of "

Custom(T)

a custom state needed for more complex quoted strings

End

the end of the quoted string was found (this is not necessary the end of the input)

Trait Implementations

impl<T: Clone + Copy + Eq + Debug> Clone for State<T>[src]

impl<T: Copy + Eq + Debug> Copy for State<T>[src]

impl<T: Eq + Copy + Debug> Eq for State<T>[src]

impl<T: PartialEq + Copy + Eq + Debug> PartialEq<State<T>> for State<T>[src]

impl<T: Debug + Copy + Eq> Debug for State<T>[src]

impl<T: Hash + Copy + Eq + Debug> Hash for State<T>[src]

Auto Trait Implementations

impl<T> Send for State<T> where
    T: Send

impl<T> Sync for State<T> where
    T: Sync

impl<T> Unpin for State<T> where
    T: Unpin

impl<T> UnwindSafe for State<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for State<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]