Enum cur::Scent [−][src]
#[non_exhaustive]
pub enum Scent {
Char(char),
Range(char, char),
Union(MultipleOdors),
Repetition(Odor),
Marked(Odor),
}
Expand description
The atomic element of a unicode string pattern.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Char(char)
Tuple Fields
0: char
Matches the given char
.
Range(char, char)
Matches a single char
whose code point is within the inclusive range of the 2 given.
Union(MultipleOdors)
Tuple Fields
Matches any of the given Odor
s.
Matches are attempted in the given order.
Repetition(Odor)
Tuple Fields
0: Odor
Matches any number of repetitions of the given Odor
.
Matches are attempted starting with 0 repetitions (an empty string) and incrementing the number of repetitions by 1 until a match cannot be made.
Marked(Odor)
Tuple Fields
0: Odor
Trait Implementations
Extends a collection with the contents of an iterator. Read more
🔬 This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
🔬 This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Creates a value from an iterator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Scent
impl UnwindSafe for Scent
Blanket Implementations
Mutably borrows from an owned value. Read more