Enum rustc_infer::infer::type_variable::TypeVariableValue [−][src]
pub enum TypeVariableValue<'tcx> {
Known {
value: Ty<'tcx>,
},
Unknown {
universe: UniverseIndex,
},
}
Variants
Fields of Known
value: Ty<'tcx>
Fields of Unknown
universe: UniverseIndex
Implementations
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<'tcx>
impl<'tcx> !Send for TypeVariableValue<'tcx>
impl<'tcx> !Sync for TypeVariableValue<'tcx>
impl<'tcx> Unpin for TypeVariableValue<'tcx>
impl<'tcx> !UnwindSafe for TypeVariableValue<'tcx>
Blanket Implementations
pub fn allocate_from_iter(
arena: &'a Arena<'tcx>,
iter: impl IntoIterator<Item = T>
) -> &'a 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: 16 bytes
Size for each variant:
Known
: 12 bytesUnknown
: 4 bytes