pub struct TypeVarId(pub u32);Expand description
A unique handle identifying a type variable. The binding state (Unbound /
Bound-to-a-Type) lives in a TypeEnv owned by the checker; the handle is
a plain id so Type stays a pure value (Clone, Eq, Hash, Serialize).
Tuple Fields§
§0: u32Implementations§
Trait Implementations§
impl Copy for TypeVarId
impl Eq for TypeVarId
impl StructuralPartialEq for TypeVarId
Auto Trait Implementations§
impl Freeze for TypeVarId
impl RefUnwindSafe for TypeVarId
impl Send for TypeVarId
impl Sync for TypeVarId
impl Unpin for TypeVarId
impl UnsafeUnpin for TypeVarId
impl UnwindSafe for TypeVarId
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