[−][src]Struct mtots_core::NativeGenerator
Implementations
impl NativeGenerator
[src]
pub fn new<B>(name: &'static str, body: B) -> Self where
B: FnMut(&mut Globals, Value) -> ResumeResult + 'static,
[src]
B: FnMut(&mut Globals, Value) -> ResumeResult + 'static,
pub fn new_with_dynamic_name<N, B>(name: N, body: B) -> Self where
N: Into<String>,
B: FnMut(&mut Globals, Value) -> ResumeResult + 'static,
[src]
N: Into<String>,
B: FnMut(&mut Globals, Value) -> ResumeResult + 'static,
pub fn name(&self) -> &str
[src]
pub fn resume(&mut self, globals: &mut Globals, arg: Value) -> ResumeResult
[src]
pub fn unpack(&mut self, globals: &mut Globals) -> Result<Vec<Value>>
[src]
pub fn iter<'a>(
&'a mut self,
globals: &'a mut Globals
) -> impl Iterator<Item = Result<Value>> + 'a
[src]
&'a mut self,
globals: &'a mut Globals
) -> impl Iterator<Item = Result<Value>> + 'a
Trait Implementations
impl Debug for NativeGenerator
[src]
impl From<NativeGenerator> for Value
[src]
fn from(gen: NativeGenerator) -> Self
[src]
impl PartialEq<NativeGenerator> for NativeGenerator
[src]
impl PartialOrd<NativeGenerator> for NativeGenerator
[src]
Auto Trait Implementations
impl !RefUnwindSafe for NativeGenerator
impl !Send for NativeGenerator
impl !Sync for NativeGenerator
impl Unpin for NativeGenerator
impl !UnwindSafe for NativeGenerator
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, 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>,