Enum rustc_typeck::hir::PathParameters
[−]
[src]
pub enum PathParameters { AngleBracketedParameters(AngleBracketedParameterData), ParenthesizedParameters(ParenthesizedParameterData), }
Unstable (
rustc_private
)Variants
AngleBracketedParameters(AngleBracketedParameterData)
Unstable (
rustc_private
)The <'a, A,B,C>
in foo::bar::baz::<'a, A,B,C>
ParenthesizedParameters(ParenthesizedParameterData)
Unstable (
rustc_private
)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) -> P<[&P<Ty>]>
Unstable (
rustc_private
)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) -> P<[&Lifetime]>
fn bindings(&self) -> P<[&TypeBinding]>
Trait Implementations
Derived Implementations
impl Debug for PathParameters
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl Hash for PathParameters
fn hash<__H>(&self, __arg_0: &mut __H) where __H: Hasher
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl Decodable for PathParameters
fn decode<__D>(__arg_0: &mut __D) -> Result<PathParameters, __D::Error> where __D: Decoder
impl Encodable for PathParameters
impl Eq for PathParameters
impl PartialEq<PathParameters> for PathParameters
fn eq(&self, __arg_0: &PathParameters) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PathParameters) -> bool
This method tests for !=
.
impl Clone for PathParameters
fn clone(&self) -> PathParameters
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more