Expand description
Structs§
- Delimited
Vec - Since the delimiter in
Delimited<T,D>is optional aVec<Delimited<T,D>>would parse consecutive values even without delimiters.DelimitedVec<T,D>will stop parsing after the first value without a delimiter. - LazyVec
- A
Vec<T>that is filled up to the first appearance of an terminatingS. ThisSmay be a subset ofT, thus parsing become lazy. This is the same asCons<Vec<Cons<Except<S>,T>>,S>but more convenient and efficient. - Repeats
- Like
DelimitedVec<T,D>but with a minimum and maximum (inclusive) number of elements. Parsing will succeed when at least the minimum number of elements is reached and stop at the maximum number. The delimiterDdefaults toNothingto parse sequences which don’t have delimiters.
Traits§
- Ranged
Repeats - A trait for parsing a repeating
Twith a minimum and maximum limit. Sometimes the number of elements to be parsed is determined at runtime eg. a number of header items needs a matching number of values.
Type Aliases§
- Any
- Any number of T delimited by D or
Nothing - AtLeast
- At least N of T delimited by D or
Nothing - AtMost
- At most N of T delimited by D or
Nothing - Colon
Delimited Vec - Vector of
Tdelimited by: - Comma
Delimited Vec - Vector of
Tdelimited by, - DotDelimited
Vec - Vector of
Tdelimited by. - Exactly
- Exactly N of T delimited by D or
Nothing - Many
- One or more of T delimited by D or
Nothing - Optional
- Zero or one of T delimited by D or
Nothing - Path
SepDelimited Vec - Vector of
Tdelimited by:: - Semicolon
Delimited Vec - Vector of
Tdelimited by;