[−][src]Struct mtots::NativeFunction
Implementations
impl NativeFunction
[src]
pub fn new<S, AS, D, B>(name: S, argspec: AS, doc: D, body: B) -> NativeFunction where
AS: Into<ArgSpec>,
B: Fn(&mut Globals, Vec<Value>, Option<HashMap<RcStr, Value, RandomState>>) -> Result<Value, Error> + 'static,
D: Into<DocStr>,
S: Into<RcStr>,
[src]
AS: Into<ArgSpec>,
B: Fn(&mut Globals, Vec<Value>, Option<HashMap<RcStr, Value, RandomState>>) -> Result<Value, Error> + 'static,
D: Into<DocStr>,
S: Into<RcStr>,
pub fn name(&self) -> &RcStr
[src]
pub fn argspec(&self) -> &ArgSpec
[src]
pub fn doc(&self) -> &Option<RcStr>
[src]
pub fn apply(
&self,
globals: &mut Globals,
args: Vec<Value>,
kwargs: Option<HashMap<RcStr, Value, RandomState>>
) -> Result<Value, Error>
[src]
&self,
globals: &mut Globals,
args: Vec<Value>,
kwargs: Option<HashMap<RcStr, Value, RandomState>>
) -> Result<Value, Error>
Trait Implementations
impl Debug for NativeFunction
[src]
impl From<NativeFunction> for Value
[src]
fn from(f: NativeFunction) -> Value
[src]
impl PartialEq<NativeFunction> for NativeFunction
[src]
fn eq(&self, other: &NativeFunction) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<NativeFunction> for NativeFunction
[src]
Auto Trait Implementations
impl !RefUnwindSafe for NativeFunction
impl !Send for NativeFunction
impl !Sync for NativeFunction
impl Unpin for NativeFunction
impl !UnwindSafe for NativeFunction
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>,