[][src]Struct media_type_impl_utils::quoted_string::StrictParsingImpl

pub struct StrictParsingImpl;

A type providing a strict ParsingImpl.

The strict parser is based on the constraints for registering media-types with IANA.

A media type compatible with this impl should be valid in any context in which a media type can appear.

All media types should be compatible with this impl, but they do not have to.

Note that this impl is a bit more strict than just IANA registry compatibility wrt. quoted-strings in media-types as it only allows quoted-pairs with chars which can not be represented in another way i.e. '"' and '\\'.

Trait Implementations

impl Clone for StrictParsingImpl[src]

impl Copy for StrictParsingImpl[src]

impl Default for StrictParsingImpl[src]

impl Eq for StrictParsingImpl[src]

impl PartialEq<StrictParsingImpl> for StrictParsingImpl[src]

impl Debug for StrictParsingImpl[src]

impl Hash for StrictParsingImpl[src]

impl ParsingImpl for StrictParsingImpl[src]

fn can_be_quoted(bch: PartialCodePoint) -> bool[src]

only allow '"' and '\\'

fn handle_normal_state(
    bch: PartialCodePoint
) -> Result<(State<Self>, bool), CoreError>
[src]

any qtext or ws is ok, others are invalid

Auto Trait Implementations

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]