Enum cairo_lang_semantic::items::imp::UninferredImpl
source · pub enum UninferredImpl {
Def(ImplDefId),
ImplAlias(ImplAliasId),
GenericParam(GenericParamId),
}
Expand description
An candidate impl for later inference.
Variants§
Implementations§
source§impl UninferredImpl
impl UninferredImpl
pub fn concrete_trait(&self, db: &dyn SemanticGroup) -> Maybe<ConcreteTraitId>
pub fn module_id(&self, db: &dyn SemanticGroup) -> ModuleId
Trait Implementations§
source§impl Clone for UninferredImpl
impl Clone for UninferredImpl
source§fn clone(&self) -> UninferredImpl
fn clone(&self) -> UninferredImpl
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 UninferredImpl
impl Debug for UninferredImpl
source§impl DebugWithDb<dyn SemanticGroup> for UninferredImpl
impl DebugWithDb<dyn SemanticGroup> for UninferredImpl
source§impl Hash for UninferredImpl
impl Hash for UninferredImpl
source§impl PartialEq for UninferredImpl
impl PartialEq for UninferredImpl
source§fn eq(&self, other: &UninferredImpl) -> bool
fn eq(&self, other: &UninferredImpl) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: SemanticRewriter<ImplDefId, Error> + SemanticRewriter<ImplAliasId, Error> + SemanticRewriter<GenericParamId, Error>, Error> SemanticObject<T, Error> for UninferredImpl
impl<T: SemanticRewriter<ImplDefId, Error> + SemanticRewriter<ImplAliasId, Error> + SemanticRewriter<GenericParamId, Error>, Error> SemanticObject<T, Error> for UninferredImpl
fn default_rewrite(self, rewriter: &mut T) -> Result<Self, Error>
source§impl<'a> SemanticRewriter<UninferredImpl, DiagnosticAdded> for SubstitutionRewriter<'a>
impl<'a> SemanticRewriter<UninferredImpl, DiagnosticAdded> for SubstitutionRewriter<'a>
fn rewrite( &mut self, value: UninferredImpl ) -> Result<UninferredImpl, DiagnosticAdded>
source§impl<'a> SemanticRewriter<UninferredImpl, NoError> for Inference<'a>
impl<'a> SemanticRewriter<UninferredImpl, NoError> for Inference<'a>
fn rewrite(&mut self, value: UninferredImpl) -> Result<UninferredImpl, NoError>
impl Copy for UninferredImpl
impl Eq for UninferredImpl
impl StructuralEq for UninferredImpl
impl StructuralPartialEq for UninferredImpl
Auto Trait Implementations§
impl RefUnwindSafe for UninferredImpl
impl Send for UninferredImpl
impl Sync for UninferredImpl
impl Unpin for UninferredImpl
impl UnwindSafe for UninferredImpl
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.