Enum syntex_syntax::parse::parser::PathParsingMode [] [src]

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

impl PartialEq for PathParsingMode

fn eq(&self, __arg_0: &PathParsingMode) -> bool

fn ne(&self, __arg_0: &PathParsingMode) -> bool

impl Clone for PathParsingMode

fn clone(&self) -> PathParsingMode

fn clone_from(&mut self, source: &Self)

impl Copy for PathParsingMode