Struct cairo_lang_semantic::expr::inference::TypeVar
source · pub struct TypeVar {
pub inference_id: InferenceId,
pub id: LocalTypeVarId,
}
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§
§inference_id: InferenceId
§id: LocalTypeVarId
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>
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.§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.