pub enum GenericFunctionWithBodyId {
Free(FreeFunctionId),
Impl(ImplGenericFunctionWithBodyId),
}
Expand description
The ID of a generic function with body that can be concretized.
Variants§
Free(FreeFunctionId)
Impl(ImplGenericFunctionWithBodyId)
Implementations§
source§impl GenericFunctionWithBodyId
impl GenericFunctionWithBodyId
pub fn from_generic( db: &dyn SemanticGroup, other: GenericFunctionId ) -> Maybe<Option<Self>>
pub fn name(&self, db: &dyn SemanticGroup) -> SmolStr
Trait Implementations§
source§impl Clone for GenericFunctionWithBodyId
impl Clone for GenericFunctionWithBodyId
source§fn clone(&self) -> GenericFunctionWithBodyId
fn clone(&self) -> GenericFunctionWithBodyId
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 GenericFunctionWithBodyId
impl Debug for GenericFunctionWithBodyId
source§impl Hash for GenericFunctionWithBodyId
impl Hash for GenericFunctionWithBodyId
source§impl PartialEq<GenericFunctionWithBodyId> for GenericFunctionWithBodyId
impl PartialEq<GenericFunctionWithBodyId> for GenericFunctionWithBodyId
source§fn eq(&self, other: &GenericFunctionWithBodyId) -> bool
fn eq(&self, other: &GenericFunctionWithBodyId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: SemanticRewriter<FreeFunctionId, Error> + SemanticRewriter<ImplGenericFunctionWithBodyId, Error>, Error> SemanticObject<T, Error> for GenericFunctionWithBodyId
impl<T: SemanticRewriter<FreeFunctionId, Error> + SemanticRewriter<ImplGenericFunctionWithBodyId, Error>, Error> SemanticObject<T, Error> for GenericFunctionWithBodyId
fn default_rewrite(self, rewriter: &mut T) -> Result<Self, Error>
source§impl<'a> SemanticRewriter<GenericFunctionWithBodyId, DiagnosticAdded> for SubstitutionRewriter<'a>
impl<'a> SemanticRewriter<GenericFunctionWithBodyId, DiagnosticAdded> for SubstitutionRewriter<'a>
fn rewrite( &mut self, value: GenericFunctionWithBodyId ) -> Result<GenericFunctionWithBodyId, DiagnosticAdded>
source§impl<'a> SemanticRewriter<GenericFunctionWithBodyId, InferenceError> for Inference<'a>
impl<'a> SemanticRewriter<GenericFunctionWithBodyId, InferenceError> for Inference<'a>
fn rewrite( &mut self, value: GenericFunctionWithBodyId ) -> Result<GenericFunctionWithBodyId, InferenceError>
impl Copy for GenericFunctionWithBodyId
impl Eq for GenericFunctionWithBodyId
impl StructuralEq for GenericFunctionWithBodyId
impl StructuralPartialEq for GenericFunctionWithBodyId
Auto Trait Implementations§
impl RefUnwindSafe for GenericFunctionWithBodyId
impl Send for GenericFunctionWithBodyId
impl Sync for GenericFunctionWithBodyId
impl Unpin for GenericFunctionWithBodyId
impl UnwindSafe for GenericFunctionWithBodyId
Blanket Implementations§
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.