Available on crate feature
parsing only.Expand description
Rules defined in RFC 2822.
Constantsยง
- DEPTH_
LIMIT ๐
Functionsยง
- ccontent ๐
- Consume the
ccontentrule. - cfws ๐
- Consume the
cfwsrule. - comment ๐
- Consume the
commentrule. - ctext ๐
- Consume the
ctextrule. - fws ๐
- Consume the
fwsrule. - no_
ws_ ๐ctl - Consume the
no_ws_ctlrule. - opt_
cfws ๐ - Optional
cfwsrule. This is equivalent toopt(cfws), but is better optimized for the common case where nocfwsis present. - opt_
cfws_ ๐colon_ opt_ cfws - Equivalent to
opt(cfws),ascii_char::<b':'>, andopt(cfws)called in sequence, but is better optimized for the common case where nocfwsis present. - quoted_
pair ๐ - Consume the
quoted_pairrule. - text ๐
- Consume the
textrule. - zone_
literal ๐ - Consume an old zone literal, returning the offset in hours.