pub struct ConcreteFunctionWithBody {
    pub generic_function: GenericFunctionWithBodyId,
    pub generic_args: Vec<GenericArgumentId>,
}Expand description
A long Id of a concrete function with body.
Fields§
§generic_function: GenericFunctionWithBodyId§generic_args: Vec<GenericArgumentId>Implementations§
source§impl ConcreteFunctionWithBody
 
impl ConcreteFunctionWithBody
pub fn function_with_body_id(&self) -> FunctionWithBodyId
pub fn substitution(&self, db: &dyn SemanticGroup) -> Maybe<GenericSubstitution>
pub fn from_no_generics_free( db: &dyn SemanticGroup, free_function_id: FreeFunctionId ) -> Option<Self>
pub fn from_generic( db: &dyn SemanticGroup, function_id: FunctionWithBodyId ) -> Maybe<Self>
pub fn concrete(&self, db: &dyn SemanticGroup) -> Maybe<ConcreteFunction>
pub fn function_id(&self, db: &dyn SemanticGroup) -> Maybe<FunctionId>
pub fn name(&self, db: &dyn SemanticGroup) -> SmolStr
pub fn full_path(&self, db: &dyn SemanticGroup) -> String
Trait Implementations§
source§impl Clone for ConcreteFunctionWithBody
 
impl Clone for ConcreteFunctionWithBody
source§fn clone(&self) -> ConcreteFunctionWithBody
 
fn clone(&self) -> ConcreteFunctionWithBody
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 ConcreteFunctionWithBody
 
impl Debug for ConcreteFunctionWithBody
source§impl DebugWithDb<dyn SemanticGroup> for ConcreteFunctionWithBody
 
impl DebugWithDb<dyn SemanticGroup> for ConcreteFunctionWithBody
source§impl Hash for ConcreteFunctionWithBody
 
impl Hash for ConcreteFunctionWithBody
source§impl PartialEq for ConcreteFunctionWithBody
 
impl PartialEq for ConcreteFunctionWithBody
source§fn eq(&self, other: &ConcreteFunctionWithBody) -> bool
 
fn eq(&self, other: &ConcreteFunctionWithBody) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl<T: SemanticRewriter<GenericFunctionWithBodyId, Error> + SemanticRewriter<Vec<GenericArgumentId>, Error>, Error> SemanticObject<T, Error> for ConcreteFunctionWithBody
 
impl<T: SemanticRewriter<GenericFunctionWithBodyId, Error> + SemanticRewriter<Vec<GenericArgumentId>, Error>, Error> SemanticObject<T, Error> for ConcreteFunctionWithBody
fn default_rewrite(self, rewriter: &mut T) -> Result<Self, Error>
source§impl<'a> SemanticRewriter<ConcreteFunctionWithBody, DiagnosticAdded> for SubstitutionRewriter<'a>
 
impl<'a> SemanticRewriter<ConcreteFunctionWithBody, DiagnosticAdded> for SubstitutionRewriter<'a>
fn rewrite( &mut self, value: ConcreteFunctionWithBody ) -> Result<ConcreteFunctionWithBody, DiagnosticAdded>
source§impl<'a> SemanticRewriter<ConcreteFunctionWithBody, NoError> for Inference<'a>
 
impl<'a> SemanticRewriter<ConcreteFunctionWithBody, NoError> for Inference<'a>
fn rewrite( &mut self, value: ConcreteFunctionWithBody ) -> Result<ConcreteFunctionWithBody, NoError>
impl Eq for ConcreteFunctionWithBody
impl StructuralEq for ConcreteFunctionWithBody
impl StructuralPartialEq for ConcreteFunctionWithBody
Auto Trait Implementations§
impl RefUnwindSafe for ConcreteFunctionWithBody
impl Send for ConcreteFunctionWithBody
impl Sync for ConcreteFunctionWithBody
impl Unpin for ConcreteFunctionWithBody
impl UnwindSafe for ConcreteFunctionWithBody
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.