Enum stable_mir::ty::RigidTy
source · pub enum RigidTy {
Show 19 variants
Bool,
Char,
Int(IntTy),
Uint(UintTy),
Float(FloatTy),
Adt(AdtDef, GenericArgs),
Foreign(ForeignDef),
Str,
Array(Ty, Const),
Slice(Ty),
RawPtr(Ty, Mutability),
Ref(Region, Ty, Mutability),
FnDef(FnDef, GenericArgs),
FnPtr(PolyFnSig),
Closure(ClosureDef, GenericArgs),
Generator(GeneratorDef, GenericArgs, Movability),
Dynamic(Vec<Binder<ExistentialPredicate>>, Region, DynKind),
Never,
Tuple(Vec<Ty>),
}
Variants§
Bool
Char
Int(IntTy)
Uint(UintTy)
Float(FloatTy)
Adt(AdtDef, GenericArgs)
Foreign(ForeignDef)
Str
Array(Ty, Const)
Slice(Ty)
RawPtr(Ty, Mutability)
Ref(Region, Ty, Mutability)
FnDef(FnDef, GenericArgs)
FnPtr(PolyFnSig)
Closure(ClosureDef, GenericArgs)
Generator(GeneratorDef, GenericArgs, Movability)
Dynamic(Vec<Binder<ExistentialPredicate>>, Region, DynKind)
Never
Tuple(Vec<Ty>)
Trait Implementations§
Auto Trait Implementations§
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
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: 96 bytes
Size for each variant:
Bool
: 0 bytesChar
: 0 bytesInt
: 5 bytesUint
: 5 bytesFloat
: 5 bytesAdt
: 40 bytesForeign
: 16 bytesStr
: 0 bytesArray
: 88 bytesSlice
: 16 bytesRawPtr
: 24 bytesRef
: 88 bytesFnDef
: 40 bytesFnPtr
: 64 bytesClosure
: 40 bytesGenerator
: 48 bytesDynamic
: 96 bytesNever
: 0 bytesTuple
: 32 bytes