Enum syntax::ast::PathParameters
[−]
[src]
pub enum PathParameters {
AngleBracketedParameters(AngleBracketedParameterData),
ParenthesizedParameters(ParenthesizedParameterData),
}Unstable
Variants
AngleBracketedParameters | Unstable The |
ParenthesizedParameters | Unstable The |
Methods
impl PathParameters
fn none() -> PathParameters
Unstable
fn is_empty(&self) -> bool
Unstable
fn has_lifetimes(&self) -> bool
Unstable
fn has_types(&self) -> bool
Unstable
fn types(&self) -> Vec<&P<Ty>>
Unstable
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>
Unstable
fn bindings(&self) -> Vec<&P<TypeBinding>>
Unstable