[][src]Struct ra_ap_hir_def::path::AssociatedTypeBinding

pub struct AssociatedTypeBinding {
    pub name: Name,
    pub type_ref: Option<TypeRef>,
    pub bounds: Vec<TypeBound>,
}

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<TypeBound>

Bounds for the associated type, like in Iterator<Item: SomeOtherTrait>. (This is the unstable associated_type_bounds feature.)

Trait Implementations

impl Clone for AssociatedTypeBinding[src]

impl Debug for AssociatedTypeBinding[src]

impl Eq for AssociatedTypeBinding[src]

impl Hash for AssociatedTypeBinding[src]

impl PartialEq<AssociatedTypeBinding> for AssociatedTypeBinding[src]

impl StructuralEq for AssociatedTypeBinding[src]

impl StructuralPartialEq for AssociatedTypeBinding[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Clone + Any
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.