Enum cairo_lang_semantic::types::TypeLongId
source · pub enum TypeLongId {
Concrete(ConcreteTypeId),
Tuple(Vec<TypeId>),
Snapshot(TypeId),
GenericParameter(GenericParamId),
Var(TypeVar),
Missing(DiagnosticAdded),
}
Variants§
Concrete(ConcreteTypeId)
Tuple(Vec<TypeId>)
Some expressions might have invalid types during processing, either due to errors or during inference.
Snapshot(TypeId)
GenericParameter(GenericParamId)
Var(TypeVar)
Missing(DiagnosticAdded)
Implementations§
source§impl TypeLongId
impl TypeLongId
pub fn format(&self, db: &dyn SemanticGroup) -> String
Trait Implementations§
source§impl Clone for TypeLongId
impl Clone for TypeLongId
source§fn clone(&self) -> TypeLongId
fn clone(&self) -> TypeLongId
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TypeLongId
impl Debug for TypeLongId
source§impl DebugWithDb<dyn SemanticGroup> for TypeLongId
impl DebugWithDb<dyn SemanticGroup> for TypeLongId
source§impl Hash for TypeLongId
impl Hash for TypeLongId
source§impl OptionFrom<TypeLongId> for ConcreteTypeId
impl OptionFrom<TypeLongId> for ConcreteTypeId
fn option_from(other: TypeLongId) -> Option<Self>
source§impl PartialEq for TypeLongId
impl PartialEq for TypeLongId
source§fn eq(&self, other: &TypeLongId) -> bool
fn eq(&self, other: &TypeLongId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: SemanticRewriter<ConcreteTypeId, Error> + SemanticRewriter<Vec<TypeId>, Error> + SemanticRewriter<TypeId, Error> + SemanticRewriter<GenericParamId, Error> + SemanticRewriter<TypeVar, Error>, Error> SemanticObject<T, Error> for TypeLongId
impl<T: SemanticRewriter<ConcreteTypeId, Error> + SemanticRewriter<Vec<TypeId>, Error> + SemanticRewriter<TypeId, Error> + SemanticRewriter<GenericParamId, Error> + SemanticRewriter<TypeVar, Error>, Error> SemanticObject<T, Error> for TypeLongId
fn default_rewrite(self, rewriter: &mut T) -> Result<Self, Error>
source§impl<'a> SemanticRewriter<TypeLongId, DiagnosticAdded> for SubstitutionRewriter<'a>
impl<'a> SemanticRewriter<TypeLongId, DiagnosticAdded> for SubstitutionRewriter<'a>
fn rewrite(&mut self, value: TypeLongId) -> Maybe<TypeLongId>
source§impl<'a> SemanticRewriter<TypeLongId, NoError> for Inference<'a>
impl<'a> SemanticRewriter<TypeLongId, NoError> for Inference<'a>
fn rewrite(&mut self, value: TypeLongId) -> Result<TypeLongId, NoError>
impl Eq for TypeLongId
impl StructuralEq for TypeLongId
impl StructuralPartialEq for TypeLongId
Auto Trait Implementations§
impl RefUnwindSafe for TypeLongId
impl Send for TypeLongId
impl Sync for TypeLongId
impl Unpin for TypeLongId
impl UnwindSafe for TypeLongId
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.§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.