pub enum PathParsingMode {
NoTypesAllowed,
LifetimeAndTypesWithoutColons,
LifetimeAndTypesWithColons,
LifetimeAndTypesAndBounds,
}How to parse a path. There are four different kinds of paths, all of which
are parsed somewhat differently.
Variants
NoTypesAllowed | A path with no type parameters; e.g. foo::bar::Baz
|
LifetimeAndTypesWithoutColons | A path with a lifetime and type parameters, with no double colons
before the type parameters; e.g. foo::bar<'a>::Baz<T>
|
LifetimeAndTypesWithColons | A path with a lifetime and type parameters with double colons before
the type parameters; e.g. foo::bar::<'a>::Baz::<T>
|
LifetimeAndTypesAndBounds | A path with a lifetime and type parameters with bounds before the last
set of type parameters only; e.g. foo::bar<'a>::Baz+X+Y<T> This
form does not use extra double colons.
|
Trait Implementations
Derived Implementations