pub struct HostModule<P: ProcessManager> {
pub name: String,
pub funcs: Vec<HostRegistration<P>>,
pub types: Vec<&'static TypeDescriptor>,
}Expand description
One host library: functions and types registered under a single module
name. Engine::register_module stages these; runs expose them as
MODULE::NAME calls with MODULE provenance on every entry.
Fields§
§name: String§funcs: Vec<HostRegistration<P>>§types: Vec<&'static TypeDescriptor>Trait Implementations§
Source§impl<P: Clone + ProcessManager> Clone for HostModule<P>
impl<P: Clone + ProcessManager> Clone for HostModule<P>
Auto Trait Implementations§
impl<P> !RefUnwindSafe for HostModule<P>
impl<P> !UnwindSafe for HostModule<P>
impl<P> Freeze for HostModule<P>
impl<P> Send for HostModule<P>
impl<P> Sync for HostModule<P>
impl<P> Unpin for HostModule<P>
impl<P> UnsafeUnpin for HostModule<P>
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