Enum syntax::ast::PathParametersUnstable [-] [+] [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 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, Error>

impl Encodable for PathParameters

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

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)