[][src]Struct mtots_core::NativeGenerator

pub struct NativeGenerator { /* fields omitted */ }

Implementations

impl NativeGenerator[src]

pub fn new<B>(name: &'static str, body: B) -> Self where
    B: FnMut(&mut Globals, Value) -> ResumeResult + 'static, 
[src]

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]

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]

Trait Implementations

impl Debug for NativeGenerator[src]

impl From<NativeGenerator> for Value[src]

impl PartialEq<NativeGenerator> for NativeGenerator[src]

impl PartialOrd<NativeGenerator> for NativeGenerator[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.