]>
git.proxmox.com Git - rustc.git/blob - vendor/time/src/parsing/combinator/rfc/rfc2234.rs
1 //! Rules defined in [RFC 2234].
3 //! [RFC 2234]: https://datatracker.ietf.org/doc/html/rfc2234
5 use crate::parsing
::ParsedItem
;
7 /// Consume exactly one space or tab.
8 pub(crate) const fn wsp(input
: &[u8]) -> Option
<ParsedItem
<'_
, ()>> {
10 [b' '
| b'
\t'
, rest @
..] => Some(ParsedItem(rest
, ())),