Struct debris_llir::llir_builder::NativeFunctionMap
source · pub struct NativeFunctionMap<'ctx> {
max_id: Cell<usize>,
functions: FrozenMap<NativeFunctionId, Box<FunctionGenerics<'ctx>>>,
}
Expand description
Stores the already compiled native functions
Fields§
§max_id: Cell<usize>
§functions: FrozenMap<NativeFunctionId, Box<FunctionGenerics<'ctx>>>
Implementations§
source§impl<'ctx> NativeFunctionMap<'ctx>
impl<'ctx> NativeFunctionMap<'ctx>
pub fn insert( &self, function_generics: FunctionGenerics<'ctx> ) -> NativeFunctionId
pub fn get<'a>( &'a self, id: NativeFunctionId ) -> Option<&'a FunctionGenerics<'ctx>>
Trait Implementations§
source§impl<'ctx> Default for NativeFunctionMap<'ctx>
impl<'ctx> Default for NativeFunctionMap<'ctx>
source§fn default() -> NativeFunctionMap<'ctx>
fn default() -> NativeFunctionMap<'ctx>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'ctx> !RefUnwindSafe for NativeFunctionMap<'ctx>
impl<'ctx> !Send for NativeFunctionMap<'ctx>
impl<'ctx> !Sync for NativeFunctionMap<'ctx>
impl<'ctx> Unpin for NativeFunctionMap<'ctx>
impl<'ctx> !UnwindSafe for NativeFunctionMap<'ctx>
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