pub enum TypeIdentity {
Named(TypeId),
Array(Box<Self>),
Tuple(Vec<Self>),
Callable(Vec<Self>, Box<Self>),
}Expand description
Identifies nominal leaves and recursive structural types independently of names.
Equality and hashing preserve every array, tuple, and callable component; erased storage carrier identities never replace structural identity.
§Examples
Variants§
Named(TypeId)
A concrete nominal Rust identity.
Array(Box<Self>)
A canonical array with a recursive element identity.
Tuple(Vec<Self>)
Source-ordered tuple fields, empty for unit.
Callable(Vec<Self>, Box<Self>)
Source-ordered callable parameters and result.
Trait Implementations§
Source§impl Clone for TypeIdentity
impl Clone for TypeIdentity
Source§impl Debug for TypeIdentity
impl Debug for TypeIdentity
impl Eq for TypeIdentity
Source§impl Hash for TypeIdentity
impl Hash for TypeIdentity
Source§impl PartialEq for TypeIdentity
impl PartialEq for TypeIdentity
impl StructuralPartialEq for TypeIdentity
Auto Trait Implementations§
impl Freeze for TypeIdentity
impl RefUnwindSafe for TypeIdentity
impl Send for TypeIdentity
impl Sync for TypeIdentity
impl Unpin for TypeIdentity
impl UnsafeUnpin for TypeIdentity
impl UnwindSafe for TypeIdentity
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