pub enum PathParsingMode {
NoTypesAllowed,
LifetimeAndTypesWithoutColons,
LifetimeAndTypesWithColons,
}
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>
|
Trait Implementations
Derived Implementations
Keyboard shortcuts
- ?
- Show this help dialog
- S
- Focus the search field
- ⇤
- Move up in search results
- ⇥
- Move down in search results
- ⏎
- Go to active search result
Search tricks
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).