Enum cairo_lang_semantic::types::TypeHead
source · pub enum TypeHead {
Concrete(GenericTypeId),
Snapshot(Box<TypeHead>),
Tuple,
}
Expand description
Head of a type. A non-param non-variable type has a head, which represents the kind of the root node in its type tree. This is used for caching queries for fast lookups when the type is not completely inferred yet.
Variants§
Trait Implementations§
source§impl PartialEq<TypeHead> for TypeHead
impl PartialEq<TypeHead> for TypeHead
impl Eq for TypeHead
impl StructuralEq for TypeHead
impl StructuralPartialEq for TypeHead
Auto Trait Implementations§
impl RefUnwindSafe for TypeHead
impl Send for TypeHead
impl Sync for TypeHead
impl Unpin for TypeHead
impl UnwindSafe for TypeHead
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.