Enum ra_ap_hir_def::type_ref::TypeRef [−][src]
pub enum TypeRef {}Show variants
Never, Placeholder, Tuple(Vec<TypeRef>), Path(Path), RawPtr(Box<TypeRef>, Mutability), Reference(Box<TypeRef>, Option<LifetimeRef>, Mutability), Array(Box<TypeRef>, ConstScalar), Slice(Box<TypeRef>), Fn(Vec<TypeRef>, bool), ImplTrait(Vec<Interned<TypeBound>>), DynTrait(Vec<Interned<TypeBound>>), Macro(AstId<MacroCall>), Error,
Expand description
Compare ty::Ty
Note: Most users of TypeRef
that end up in the salsa database intern it using
Interned<TypeRef>
to save space. But notably, nested TypeRef
s are not interned, since that
does not seem to save any noticeable amount of memory.
Variants
Path(Path)
RawPtr(Box<TypeRef>, Mutability)
Reference(Box<TypeRef>, Option<LifetimeRef>, Mutability)
Array(Box<TypeRef>, ConstScalar)
A fn pointer. Last element of the vector is the return type.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TypeRef
impl UnwindSafe for TypeRef
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.