DeclRefFunction

Type Alias DeclRefFunction 

Source
pub type DeclRefFunction = DeclRef<DeclId<TyFunctionDecl>>;

Aliased Type§

pub struct DeclRefFunction { /* private fields */ }

Implementations§

Source§

impl DeclRefFunction

Source

pub fn get_method_safe_to_unify( &self, engines: &Engines, type_id: TypeId, ) -> Self

Makes method with a copy of type_id. This avoids altering the type_id already in the type map. Without this it is possible to retrieve a method from the type map unify its types and the second time it won’t be possible to retrieve the same method.

Trait Implementations§

Source§

impl TryFrom<&DeclRef<AssociatedItemDeclId>> for DeclRefFunction

Source§

type Error = CompileError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &DeclRefMixedFunctional) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<DeclRef<AssociatedItemDeclId>> for DeclRefFunction

Source§

type Error = CompileError

The type returned in the event of a conversion error.
Source§

fn try_from(value: DeclRefMixedFunctional) -> Result<Self, Self::Error>

Performs the conversion.