[−][src]Enum media_type_impl_utils::quoted_string::FWSState
A enum to represent the sate in a quoted string parser for specifications with FWS
FWS are forward white spaces, they can appear in media-types in the mime specification
a FWS is a "\r\n"
seq followed by either ' '
or '\t'
.
Variants
the state after the first '\r'
the state after "\r\n"
the state after "\r\n "
or "\r\n\t"
+ any number of ws chars
Methods
impl FWSState
[src]
pub fn advance<Impl: MimeParsingExt>(
self,
bch: PartialCodePoint
) -> Result<(State<Impl>, bool), CoreError>
[src]
self,
bch: PartialCodePoint
) -> Result<(State<Impl>, bool), CoreError>
default implementation for handing FWSState state transitions
Handles the state transition wrt. a given MimeParsingExt implementation.
It assures that after a \r
only \n
can follow and after a \n
either
' '
or '\t'
has to follow. Lastly it makes sure that between two
FWS there has to be at last one non ws character (at last in the non obs grammar).
Trait Implementations
impl Clone for FWSState
[src]
impl Copy for FWSState
[src]
impl Eq for FWSState
[src]
impl PartialEq<FWSState> for FWSState
[src]
impl Debug for FWSState
[src]
impl Hash for FWSState
[src]
Auto Trait Implementations
impl Send for FWSState
impl Sync for FWSState
impl Unpin for FWSState
impl UnwindSafe for FWSState
impl RefUnwindSafe for FWSState
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,