Enum syntex_syntax::ast::PathParameters [] [src]

pub enum PathParameters {
    AngleBracketedParameters(AngleBracketedParameterData),
    ParenthesizedParameters(ParenthesizedParameterData),
}

Variants

AngleBracketedParameters

The <'a, A,B,C> in foo::bar::baz::<'a, A,B,C>

ParenthesizedParameters

The (A,B) and C in Foo(A,B) -> C

Methods

impl PathParameters

fn none() -> PathParameters

fn is_empty(&self) -> bool

fn has_lifetimes(&self) -> bool

fn has_types(&self) -> bool

fn types(&self) -> Vec<&P<Ty>>

Returns the types that the user wrote. Note that these do not necessarily map to the type parameters in the parenthesized case.

fn lifetimes(&self) -> Vec<&Lifetime>

fn bindings(&self) -> Vec<&P<TypeBinding>>

Trait Implementations

Derived Implementations

impl Debug for PathParameters

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Hash for PathParameters

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Decodable for PathParameters

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<PathParameters, __D::Error>

impl Encodable for PathParameters

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Eq for PathParameters

impl PartialEq for PathParameters

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

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

impl Clone for PathParameters

fn clone(&self) -> PathParameters

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