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
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 + 'static> for ConcreteFunctionWithBody
impl DebugWithDb<dyn SemanticGroup + 'static> for ConcreteFunctionWithBody
source§impl Hash for ConcreteFunctionWithBody
impl Hash for ConcreteFunctionWithBody
source§impl PartialEq<ConcreteFunctionWithBody> for ConcreteFunctionWithBody
impl PartialEq<ConcreteFunctionWithBody> 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, InferenceError> for Inference<'a>
impl<'a> SemanticRewriter<ConcreteFunctionWithBody, InferenceError> for Inference<'a>
fn rewrite( &mut self, value: ConcreteFunctionWithBody ) -> Result<ConcreteFunctionWithBody, InferenceError>
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 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.