Struct adana_script_core::primitive::NativeLibrary
source · pub struct NativeLibrary { /* private fields */ }
Implementations§
source§impl NativeLibrary
impl NativeLibrary
pub unsafe fn new(path: &Path) -> Result<NativeLibrary>
pub fn get_path(&self) -> &Path
pub unsafe fn get_function(&self, key: &str) -> Result<NativeFunction<'_>>
pub unsafe fn call_function( &self, key: &str, params: Vec<Primitive>, compiler: Box<Compiler> ) -> Result<Primitive>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for NativeLibrary
impl Send for NativeLibrary
impl Sync for NativeLibrary
impl Unpin for NativeLibrary
impl UnwindSafe for NativeLibrary
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