pub enum RigidTy {
Show 21 variants
Bool,
Char,
Int(IntTy),
Uint(UintTy),
Float(FloatTy),
Adt(AdtDef, GenericArgs),
Foreign(ForeignDef),
Str,
Array(Ty, TyConst),
Pat(Ty, Pattern),
Slice(Ty),
RawPtr(Ty, Mutability),
Ref(Region, Ty, Mutability),
FnDef(FnDef, GenericArgs),
FnPtr(PolyFnSig),
Closure(ClosureDef, GenericArgs),
Coroutine(CoroutineDef, GenericArgs, Movability),
Dynamic(Vec<Binder<ExistentialPredicate>>, Region, DynKind),
Never,
Tuple(Vec<Ty>),
CoroutineWitness(CoroutineWitnessDef, GenericArgs),
}
Variants§
Bool
Char
Int(IntTy)
Uint(UintTy)
Float(FloatTy)
Adt(AdtDef, GenericArgs)
Foreign(ForeignDef)
Str
Array(Ty, TyConst)
Pat(Ty, Pattern)
Slice(Ty)
RawPtr(Ty, Mutability)
Ref(Region, Ty, Mutability)
FnDef(FnDef, GenericArgs)
FnPtr(PolyFnSig)
Closure(ClosureDef, GenericArgs)
Coroutine(CoroutineDef, GenericArgs, Movability)
Dynamic(Vec<Binder<ExistentialPredicate>>, Region, DynKind)
Never
Tuple(Vec<Ty>)
CoroutineWitness(CoroutineWitnessDef, GenericArgs)
Implementations§
Trait Implementations§
source§impl Visitable for RigidTy
impl Visitable for RigidTy
fn super_visit<V: Visitor>(&self, visitor: &mut V) -> ControlFlow<V::Break>
fn visit<V: Visitor>(&self, visitor: &mut V) -> ControlFlow<V::Break>
impl Eq for RigidTy
impl StructuralPartialEq for RigidTy
Auto Trait Implementations§
impl Freeze for RigidTy
impl RefUnwindSafe for RigidTy
impl Send for RigidTy
impl Sync for RigidTy
impl Unpin for RigidTy
impl UnwindSafe for RigidTy
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 176 bytes
Size for each variant:
Bool
: 0 bytesChar
: 0 bytesInt
: 9 bytesUint
: 9 bytesFloat
: 9 bytesAdt
: 40 bytesForeign
: 16 bytesStr
: 0 bytesArray
: 96 bytesPat
: 176 bytesSlice
: 16 bytesRawPtr
: 24 bytesRef
: 80 bytesFnDef
: 40 bytesFnPtr
: 64 bytesClosure
: 40 bytesCoroutine
: 48 bytesDynamic
: 96 bytesNever
: 0 bytesTuple
: 32 bytesCoroutineWitness
: 40 bytes