pub struct NativeModuleBuilder { /* private fields */ }
Implementations§
Source§impl NativeModuleBuilder
impl NativeModuleBuilder
pub fn doc<D: Into<RcStr>>(&mut self, doc: D) -> &mut Self
pub fn dep<N: Into<RcStr>>( &mut self, name: N, alias: Option<&str>, reexports: &[(&str, &str)], ) -> &mut Self
pub fn field<N, D, F>(&mut self, name: N, doc: D, body: F) -> &mut Self
pub fn val<N, D, V>(&mut self, name: N, doc: D, value: V) -> &mut Self
pub fn func<N, A, D, B>( &mut self, name: N, argspec: A, doc: D, body: B, ) -> &mut Self
pub fn class<T, F>(&mut self, name: &str, f: F) -> &mut Self
pub fn action<F>(&mut self, body: F)
Auto Trait Implementations§
impl Freeze for NativeModuleBuilder
impl !RefUnwindSafe for NativeModuleBuilder
impl !Send for NativeModuleBuilder
impl !Sync for NativeModuleBuilder
impl Unpin for NativeModuleBuilder
impl !UnwindSafe for NativeModuleBuilder
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