Struct ra_ap_hir_def::path::AssociatedTypeBinding [−][src]
pub struct AssociatedTypeBinding { pub name: Name, pub type_ref: Option<TypeRef>, pub bounds: Vec<Interned<TypeBound>>, }
Expand description
An associated type binding like in Iterator<Item = T>
.
Fields
name: Name
The name of the associated type.
type_ref: Option<TypeRef>
The type bound to this associated type (in Item = T
, this would be the
T
). This can be None
if there are bounds instead.
bounds: Vec<Interned<TypeBound>>
Bounds for the associated type, like in Iterator<Item: SomeOtherTrait>
. (This is the unstable associated_type_bounds
feature.)
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for AssociatedTypeBinding
impl Send for AssociatedTypeBinding
impl Sync for AssociatedTypeBinding
impl Unpin for AssociatedTypeBinding
impl UnwindSafe for AssociatedTypeBinding
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.