Enum rustc_infer::infer::type_variable::TypeVariableValue
source · [−]pub enum TypeVariableValue<'tcx> {
Known {
value: Ty<'tcx>,
},
Unknown {
universe: UniverseIndex,
},
}Variants
Known
Fields
value: Ty<'tcx>Unknown
Fields
universe: UniverseIndexImplementations
Trait Implementations
Defines the type to return when merging of two values fails.
If merging is infallible, use the special struct NoError
found in this crate, which unlocks various more convenient
methods on the unification table. Read more
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for TypeVariableValue
impl<'tcx> Send for TypeVariableValue
impl<'tcx> Sync for TypeVariableValue
impl<'tcx> Unpin for TypeVariableValue
impl<'tcx> !UnwindSafe for TypeVariableValue
Blanket Implementations
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: 16 bytes
Size for each variant:
Known: 12 bytesUnknown: 4 bytes