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

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

State used when parsing a quoted string

Variants

The initial state

The normal state

Failed as it e.g. hit an invalid char

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

a custom state needed for more complex quoted strings

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

Trait Implementations

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Formats the value using the given formatter. Read more

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

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

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

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