[−][src]Struct mtots::NativeModuleBuilder
Implementations
impl NativeModuleBuilder
[src]
pub fn doc<D>(&mut self, doc: D) -> &mut NativeModuleBuilder where
D: Into<RcStr>,
[src]
D: Into<RcStr>,
pub fn dep<N>(
&mut self,
name: N,
alias: Option<&str>,
reexports: &[(&str, &str)]
) -> &mut NativeModuleBuilder where
N: Into<RcStr>,
[src]
&mut self,
name: N,
alias: Option<&str>,
reexports: &[(&str, &str)]
) -> &mut NativeModuleBuilder where
N: Into<RcStr>,
pub fn field<N, D, F>(
&mut self,
name: N,
doc: D,
body: F
) -> &mut NativeModuleBuilder where
D: Into<DocStr>,
F: FnOnce(&mut Globals, &HashMap<RcStr, Rc<RefCell<Value>>, RandomState>) -> Result<Value, Error> + 'static,
N: Into<RcStr>,
[src]
&mut self,
name: N,
doc: D,
body: F
) -> &mut NativeModuleBuilder where
D: Into<DocStr>,
F: FnOnce(&mut Globals, &HashMap<RcStr, Rc<RefCell<Value>>, RandomState>) -> Result<Value, Error> + 'static,
N: Into<RcStr>,
pub fn val<N, D, V>(
&mut self,
name: N,
doc: D,
value: V
) -> &mut NativeModuleBuilder where
D: Into<DocStr>,
N: Into<RcStr>,
V: Into<Value>,
[src]
&mut self,
name: N,
doc: D,
value: V
) -> &mut NativeModuleBuilder where
D: Into<DocStr>,
N: Into<RcStr>,
V: Into<Value>,
pub fn func<N, A, D, B>(
&mut self,
name: N,
argspec: A,
doc: D,
body: B
) -> &mut NativeModuleBuilder where
A: Into<ArgSpec>,
B: Fn(&mut Globals, Vec<Value>, Option<HashMap<RcStr, Value, RandomState>>) -> Result<Value, Error> + 'static,
D: Into<DocStr>,
N: Into<RcStr>,
[src]
&mut self,
name: N,
argspec: A,
doc: D,
body: B
) -> &mut NativeModuleBuilder where
A: Into<ArgSpec>,
B: Fn(&mut Globals, Vec<Value>, Option<HashMap<RcStr, Value, RandomState>>) -> Result<Value, Error> + 'static,
D: Into<DocStr>,
N: Into<RcStr>,
pub fn class<T, F>(&mut self, name: &str, f: F) -> &mut NativeModuleBuilder where
F: FnOnce(&mut NativeClassBuilder<'_, T>),
T: Any,
[src]
F: FnOnce(&mut NativeClassBuilder<'_, T>),
T: Any,
pub fn action<F>(&mut self, body: F) where
F: FnOnce(&mut Globals, &HashMap<RcStr, Rc<RefCell<Value>>, RandomState>) -> Result<(), Error> + 'static,
[src]
F: FnOnce(&mut Globals, &HashMap<RcStr, Rc<RefCell<Value>>, RandomState>) -> Result<(), Error> + 'static,
Auto Trait Implementations
impl !RefUnwindSafe for NativeModuleBuilder
impl !Send for NativeModuleBuilder
impl !Sync for NativeModuleBuilder
impl Unpin for NativeModuleBuilder
impl !UnwindSafe for NativeModuleBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,