Struct cairo_lang_semantic::expr::inference::ImplVarId
source · pub struct ImplVarId(/* private fields */);Implementations§
source§impl ImplVarId
impl ImplVarId
pub fn get(&self, db: &dyn SemanticGroup) -> ImplVar
pub fn id(&self, db: &dyn SemanticGroup) -> LocalImplVarId
pub fn concrete_trait_id(&self, db: &dyn SemanticGroup) -> ConcreteTraitId
pub fn lookup_context(&self, db: &dyn SemanticGroup) -> ImplLookupContext
Trait Implementations§
source§impl<T: ?Sized + Upcast<dyn SemanticGroup + 'static>> DebugWithDb<T> for ImplVarId
impl<T: ?Sized + Upcast<dyn SemanticGroup + 'static>> DebugWithDb<T> for ImplVarId
source§impl InternKey for ImplVarId
impl InternKey for ImplVarId
source§fn from_intern_id(salsa_id: InternId) -> Self
fn from_intern_id(salsa_id: InternId) -> Self
Create an instance of the intern-key from a
u32 value.source§fn as_intern_id(&self) -> InternId
fn as_intern_id(&self) -> InternId
Extract the
u32 with which the intern-key was created.source§impl PartialEq for ImplVarId
impl PartialEq for ImplVarId
source§impl<'a, Error, TRewriter: HasDb<&'a dyn SemanticGroup> + SemanticRewriter<ImplVar, Error>> SemanticObject<TRewriter, Error> for ImplVarId
impl<'a, Error, TRewriter: HasDb<&'a dyn SemanticGroup> + SemanticRewriter<ImplVar, Error>> SemanticObject<TRewriter, Error> for ImplVarId
fn default_rewrite(self, rewriter: &mut TRewriter) -> Result<Self, Error>
source§impl<'a> SemanticRewriter<ImplVarId, DiagnosticAdded> for SubstitutionRewriter<'a>
impl<'a> SemanticRewriter<ImplVarId, DiagnosticAdded> for SubstitutionRewriter<'a>
impl Copy for ImplVarId
impl Eq for ImplVarId
impl StructuralPartialEq for ImplVarId
Auto Trait Implementations§
impl Freeze for ImplVarId
impl RefUnwindSafe for ImplVarId
impl Send for ImplVarId
impl Sync for ImplVarId
impl Unpin for ImplVarId
impl UnwindSafe for ImplVarId
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 Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more