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
pub fn full_path(&self, db: &dyn SemanticGroup) -> String
pub fn stable_location(&self, db: &dyn SemanticGroup) -> StableLocation
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 for GenericFunctionWithBodyId
 
impl PartialEq 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, NoError> for Inference<'a>
 
impl<'a> SemanticRewriter<GenericFunctionWithBodyId, NoError> for Inference<'a>
fn rewrite( &mut self, value: GenericFunctionWithBodyId ) -> Result<GenericFunctionWithBodyId, NoError>
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<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§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 Q
 
impl<Q, K> Equivalent<K> for Q
§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 Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.