pub struct AssociatedImpls {
pub functions: SeqMap<Type, ImplFunctions>,
}
Fields§
§functions: SeqMap<Type, ImplFunctions>
Implementations§
Source§impl AssociatedImpls
impl AssociatedImpls
pub fn prepare(&mut self, ty: &Type)
pub fn get_member_function( &self, ty: &Type, function_name: &str, ) -> Option<&FunctionRef>
pub fn api_get_external_function( &self, ty: &Type, function_name: &str, ) -> Option<&ExternalFunctionDefinitionRef>
pub fn api_fetch_external_function_id( &self, ty: &Type, function_name: &str, ) -> ExternalFunctionId
pub fn get_internal_member_function( &self, ty: &Type, function_name: &str, ) -> Option<&InternalFunctionDefinitionRef>
pub fn add_member_function( &mut self, ty: &Type, name: &str, func: FunctionRef, ) -> Result<(), SemanticError>
pub fn add_external_member_function( &mut self, ty: &Type, func: ExternalFunctionDefinition, ) -> Result<(), SemanticError>
pub fn add_external_struct_member_function( &mut self, named_struct_type: &NamedStructType, func: Function, ) -> Result<(), SemanticError>
pub fn add_external_struct_member_function_external( &mut self, named_struct_type: NamedStructType, func: ExternalFunctionDefinition, ) -> Result<(), SemanticError>
pub fn add_external_struct_member_function_external_ref( &mut self, named_struct_type: NamedStructType, func: ExternalFunctionDefinitionRef, ) -> Result<(), SemanticError>
Trait Implementations§
Source§impl Clone for AssociatedImpls
impl Clone for AssociatedImpls
Source§fn clone(&self) -> AssociatedImpls
fn clone(&self) -> AssociatedImpls
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 AssociatedImpls
impl Debug for AssociatedImpls
Auto Trait Implementations§
impl Freeze for AssociatedImpls
impl RefUnwindSafe for AssociatedImpls
impl !Send for AssociatedImpls
impl !Sync for AssociatedImpls
impl Unpin for AssociatedImpls
impl UnwindSafe for AssociatedImpls
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