pub struct HostModule<P>where
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 for HostModule<P>where
P: Clone + ProcessManager,
impl<P> Clone for HostModule<P>where
P: Clone + ProcessManager,
Source§fn clone(&self) -> HostModule<P>
fn clone(&self) -> HostModule<P>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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