Enum syntax::parse::parser::PathStyle
[−]
[src]
pub enum PathStyle { Mod, Type, Expr, }
rustc_private
)How to parse a path. There are three different kinds of paths, all of which are parsed somewhat differently.
Variants
Mod
rustc_private
)A path with no type parameters, e.g. foo::bar::Baz
, used in imports or visibilities.
Type
rustc_private
)A path with a lifetime and type parameters, with no double colons
before the type parameters; e.g. foo::bar<'a>::Baz<T>
, used in types.
Paths using this style can be passed into macros expecting path
nonterminals.
Expr
rustc_private
)A path with a lifetime and type parameters with double colons before
the type parameters; e.g. foo::bar::<'a>::Baz::<T>
, used in expressions or patterns.
Trait Implementations
Derived Implementations
impl PartialEq for PathStyle
[src]
fn eq(&self, __arg_0: &PathStyle) -> bool
[−]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[−]
This method tests for !=
.
impl Clone for PathStyle
[src]
fn clone(&self) -> PathStyle
[−]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[−]
Performs copy-assignment from source
. Read more