Struct intuicio_essentials::prelude::Host
source · pub struct Host { /* private fields */ }
Implementations§
source§impl Host
impl Host
pub fn new(context: Context, registry: Arc<Registry>) -> Host
pub fn fork(&self) -> Host
pub fn push_global(self) -> Result<ID<Host>, Host>
pub fn pop_global() -> Option<Host>
pub fn remove_global(id: ID<Host>) -> Option<Host>
pub fn with_global<T>(f: impl FnMut(&mut Host) -> T) -> Option<T>
pub fn context(&mut self) -> &mut Context
pub fn registry(&self) -> &Registry
pub fn context_and_registry(&mut self) -> (&mut Context, &Registry)
pub fn find_function( &self, name: &str, module_name: &str, type_name: Option<&str> ) -> Option<Arc<Function>>
pub fn call_function<O, I>(
&mut self,
name: &str,
module_name: &str,
type_name: Option<&str>
) -> Option<HostFunctionCall<'_, I, O>>where
O: DataStackPack,
I: DataStackPack,
Auto Trait Implementations§
impl Freeze for Host
impl !RefUnwindSafe for Host
impl Send for Host
impl Sync for Host
impl Unpin for Host
impl !UnwindSafe for Host
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