Expand description
This crate provides utilities to handle quoted strings like such appearing
in Media Types (both MIME (i.e. Mail) and HTTP). As there are many small but significant
differences in different specifications this crate does not provide
a specific implementation. Instead a QuotedStringSpec
trait is
exposed. Implementing it (on zero-sized structs) should allow the
usage with any quoted-string specification.
Modules§
- module containing all errors
- This module contains types for specifying what kind of quoted string is used
- provides an example implementation of quoted string spec’s
Structs§
- A iterator over chars of the content represented by the quoted strings (PartialEq<&str>)
- the result of successfully parsing a quoted string
Traits§
- Analogous to PartialEq, but with ascii case insensitive equality
Functions§
- parse a quoted string starting at the begin of
input
but possible ending earlier - quotes the input string returning the quoted string
- quotes the input string if needed
- strips quotes if they exists
- converts a quoted string into it’s content
- validates if input is a valid quoted-string