Enum syntax::ast::PathParametersExperimental [-]  [+] [src]

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

Variants

AngleBracketedParameters
ParenthesizedParameters

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 Show for PathParameters

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

impl<__S: Writer> Hash<__S> for PathParameters

fn hash(&self, __arg_0: &mut __S)

impl<__D: Decoder<__E>, __E> Decodable<__D, __E> for PathParameters

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

impl<__S: Encoder<__E>, __E> Encodable<__S, __E> for PathParameters

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

impl Eq for PathParameters

fn assert_receiver_is_total_eq(&self)

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)