[][src]Enum ra_ap_hir::TypeRef

pub enum TypeRef {
    Never,
    Placeholder,
    Tuple(Vec<TypeRef, Global>),
    Path(Path),
    RawPtr(Box<TypeRef, Global>, Mutability),
    Reference(Box<TypeRef, Global>, Option<LifetimeRef>, Mutability),
    Array(Box<TypeRef, Global>),
    Slice(Box<TypeRef, Global>),
    Fn(Vec<TypeRef, Global>, bool),
    ImplTrait(Vec<TypeBound, Global>),
    DynTrait(Vec<TypeBound, Global>),
    Error,
}

Compare ty::Ty

Variants

Never
Placeholder
Tuple(Vec<TypeRef, Global>)
Path(Path)
Array(Box<TypeRef, Global>)
Slice(Box<TypeRef, Global>)

A fn pointer. Last element of the vector is the return type.

ImplTrait(Vec<TypeBound, Global>)
DynTrait(Vec<TypeBound, Global>)
Error

Implementations

impl TypeRef[src]

pub fn walk(&self, f: &mut impl FnMut(&TypeRef))[src]

Trait Implementations

impl Clone for TypeRef[src]

impl Debug for TypeRef[src]

impl Eq for TypeRef[src]

impl Hash for TypeRef[src]

impl PartialEq<TypeRef> for TypeRef[src]

impl StructuralEq for TypeRef[src]

impl StructuralPartialEq for TypeRef[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Any for T where
    T: Any

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

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

impl<T> Cast for T

impl<T> CloneAny for T where
    T: Clone + Any

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> Instrument 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.