Struct media_type::spec::AnySpec
source · pub struct AnySpec;
Expand description
Note
Because the AnySpec is meant to be able to parse mimes from “any” spec it has to be able to handle all the thinks from MIME like soft-line brakes and comments in the mime type, which makes it slower then e.g. HttpSpec
Trait Implementations
sourceimpl From<StrictSpec> for AnySpec
impl From<StrictSpec> for AnySpec
sourcefn from(_: StrictSpec) -> AnySpec
fn from(_: StrictSpec) -> AnySpec
Converts to this type from the input type.
sourceimpl GeneralQSSpec for AnySpec
impl GeneralQSSpec for AnySpec
type Quoting = AnyQuoting
type Parsing = AnyParsingImpl
sourceimpl Spec for AnySpec
impl Spec for AnySpec
type PercentEncodeSet = MimePercentEncodeSet
fn parse_token(input: &str) -> Result<usize, ParserErrorRef<'_>>
fn parse_space(input: &str) -> Result<usize, ParserErrorRef<'_>>
type UnquotedValue = MimeTokenValidator
fn validate_token(input: &str) -> Result<(), ParserErrorRef<'_>>
fn parse_unquoted_value(input: &str) -> Result<usize, ParserErrorRef<'_>>
fn parse_quoted_string(input: &str) -> Result<usize, ParserErrorRef<'_>>
impl Copy for AnySpec
Auto Trait Implementations
impl RefUnwindSafe for AnySpec
impl Send for AnySpec
impl Sync for AnySpec
impl Unpin for AnySpec
impl UnwindSafe for AnySpec
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