Struct cairo_lang_semantic::expr::inference::TypeVar
source · pub struct TypeVar {
pub id: usize,
pub stable_ptr: SyntaxStablePtrId,
}
Expand description
A type variable, created when a generic type argument is not passed, and thus is not known yet and needs to be inferred.
Fields§
§id: usize
§stable_ptr: SyntaxStablePtrId
Trait Implementations§
source§impl PartialEq<TypeVar> for TypeVar
impl PartialEq<TypeVar> for TypeVar
source§impl<'a> SemanticRewriter<TypeVar, DiagnosticAdded> for SubstitutionRewriter<'a>
impl<'a> SemanticRewriter<TypeVar, DiagnosticAdded> for SubstitutionRewriter<'a>
source§impl<'a> SemanticRewriter<TypeVar, InferenceError> for Inference<'a>
impl<'a> SemanticRewriter<TypeVar, InferenceError> for Inference<'a>
impl Copy for TypeVar
impl Eq for TypeVar
impl StructuralEq for TypeVar
impl StructuralPartialEq for TypeVar
Auto Trait Implementations§
impl RefUnwindSafe for TypeVar
impl Send for TypeVar
impl Sync for TypeVar
impl Unpin for TypeVar
impl UnwindSafe for TypeVar
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.