pub enum GenericFunctionId {
Free(FreeFunctionId),
Extern(ExternFunctionId),
Impl(ConcreteImplGenericFunctionId),
Trait(ConcreteTraitGenericFunctionId),
}
Expand description
The ID of a generic function that can be concretized.
Variants§
Free(FreeFunctionId)
A generic free function.
Extern(ExternFunctionId)
A generic extern function.
Impl(ConcreteImplGenericFunctionId)
A generic function of a concrete impl.
Trait(ConcreteTraitGenericFunctionId)
Implementations§
source§impl GenericFunctionId
impl GenericFunctionId
pub fn generic_args_apply<F: FnOnce(&mut Vec<GenericArgumentId>)>(
&mut self,
db: &dyn SemanticGroup,
functor: F
)
pub fn format(&self, db: &dyn SemanticGroup) -> String
sourcepub fn signature(&self, db: &dyn SemanticGroup) -> FunctionSignatureId
pub fn signature(&self, db: &dyn SemanticGroup) -> FunctionSignatureId
Gets the FunctionSignatureId of the generic function.
Trait Implementations§
source§impl Clone for GenericFunctionId
impl Clone for GenericFunctionId
source§fn clone(&self) -> GenericFunctionId
fn clone(&self) -> GenericFunctionId
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 GenericFunctionId
impl Debug for GenericFunctionId
source§impl From<GenericFunctionWithBodyId> for GenericFunctionId
impl From<GenericFunctionWithBodyId> for GenericFunctionId
source§fn from(val: GenericFunctionWithBodyId) -> Self
fn from(val: GenericFunctionWithBodyId) -> Self
Converts to this type from the input type.
source§impl Hash for GenericFunctionId
impl Hash for GenericFunctionId
source§impl OptionFrom<GenericFunctionId> for GenericFunctionWithBodyId
impl OptionFrom<GenericFunctionId> for GenericFunctionWithBodyId
fn option_from(other: GenericFunctionId) -> Option<Self>
source§impl OptionFrom<ModuleItemId> for GenericFunctionId
impl OptionFrom<ModuleItemId> for GenericFunctionId
Conversion from ModuleItemId to GenericFunctionId.
fn option_from(item: ModuleItemId) -> Option<Self>
source§impl PartialEq<GenericFunctionId> for GenericFunctionId
impl PartialEq<GenericFunctionId> for GenericFunctionId
source§fn eq(&self, other: &GenericFunctionId) -> bool
fn eq(&self, other: &GenericFunctionId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for GenericFunctionId
impl Eq for GenericFunctionId
impl StructuralEq for GenericFunctionId
impl StructuralPartialEq for GenericFunctionId
Auto Trait Implementations§
impl RefUnwindSafe for GenericFunctionId
impl Send for GenericFunctionId
impl Sync for GenericFunctionId
impl Unpin for GenericFunctionId
impl UnwindSafe for GenericFunctionId
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.