pub struct NativeModule {
pub name: Option<&'static str>,
pub functions: &'static [NativeFunction],
}Fields§
§name: Option<&'static str>§functions: &'static [NativeFunction]Implementations§
Source§impl NativeModule
impl NativeModule
pub const fn new( name: Option<&'static str>, functions: &'static [NativeFunction], ) -> Self
Trait Implementations§
Source§impl Clone for NativeModule
impl Clone for NativeModule
Source§fn clone(&self) -> NativeModule
fn clone(&self) -> NativeModule
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 moreimpl Copy for NativeModule
Auto Trait Implementations§
impl Freeze for NativeModule
impl RefUnwindSafe for NativeModule
impl Send for NativeModule
impl Sync for NativeModule
impl Unpin for NativeModule
impl UnsafeUnpin for NativeModule
impl UnwindSafe for NativeModule
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