pub enum State<T: Copy + Eq + Debug> {
Start,
Normal,
Failed,
QPStart,
Custom(T),
End,
}
Expand description
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: Copy + Copy + Eq + Debug> Copy for State<T>
impl<T: Eq + Copy + Eq + Debug> Eq for State<T>
impl<T: Copy + Eq + Debug> StructuralPartialEq for State<T>
Auto Trait Implementations§
impl<T> Freeze for State<T>where
T: Freeze,
impl<T> RefUnwindSafe for State<T>where
T: RefUnwindSafe,
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,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more