pub struct StrictParsingImpl;
Expand description
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
sourceimpl Clone for StrictParsingImpl
impl Clone for StrictParsingImpl
sourcefn clone(&self) -> StrictParsingImpl
fn clone(&self) -> StrictParsingImpl
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for StrictParsingImpl
impl Debug for StrictParsingImpl
sourceimpl Default for StrictParsingImpl
impl Default for StrictParsingImpl
sourcefn default() -> StrictParsingImpl
fn default() -> StrictParsingImpl
Returns the “default value” for a type. Read more
sourceimpl Hash for StrictParsingImpl
impl Hash for StrictParsingImpl
sourceimpl ParsingImpl for StrictParsingImpl
impl ParsingImpl for StrictParsingImpl
sourcefn can_be_quoted(bch: PartialCodePoint) -> bool
fn can_be_quoted(bch: PartialCodePoint) -> bool
only allow '"'
and '\\'
sourcefn handle_normal_state(
bch: PartialCodePoint
) -> Result<(State<Self>, bool), CoreError>
fn handle_normal_state(
bch: PartialCodePoint
) -> Result<(State<Self>, bool), CoreError>
any qtext or ws is ok, others are invalid
fn advance(
&self,
_pcp: PartialCodePoint
) -> Result<(State<Self>, bool), CoreError>
sourceimpl PartialEq<StrictParsingImpl> for StrictParsingImpl
impl PartialEq<StrictParsingImpl> for StrictParsingImpl
sourcefn eq(&self, other: &StrictParsingImpl) -> bool
fn eq(&self, other: &StrictParsingImpl) -> bool
impl Copy for StrictParsingImpl
impl Eq for StrictParsingImpl
impl StructuralEq for StrictParsingImpl
impl StructuralPartialEq for StrictParsingImpl
Auto Trait Implementations
impl RefUnwindSafe for StrictParsingImpl
impl Send for StrictParsingImpl
impl Sync for StrictParsingImpl
impl Unpin for StrictParsingImpl
impl UnwindSafe for StrictParsingImpl
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more