Struct runestick::Generator [−][src]
A generator with a stored virtual machine.
Implementations
impl Generator
[src]
pub fn next(&mut self) -> Result<Option<Value>, VmError>
[src]
Get the next value produced by this stream.
pub fn resume(&mut self, value: Value) -> Result<GeneratorState, VmError>
[src]
Get the next value produced by this stream.
pub fn into_iterator(self) -> Result<Iterator, VmError>
[src]
Convert into iterator
Trait Implementations
impl Debug for Generator
[src]
impl From<Generator> for Value
[src]
impl FromValue for Generator
[src]
fn from_value(value: Value) -> Result<Self, VmError>
[src]
impl InstallWith for Generator
[src]
fn install_with(_: &mut Module) -> Result<(), ContextError>
[src]
impl IntoIterator for Generator
[src]
type Item = Result<Value, VmError>
The type of the elements being iterated over.
type IntoIter = GeneratorIterator
Which kind of iterator are we turning this into?
fn into_iter(self) -> GeneratorIterator
[src]
impl Named for Generator
[src]
impl ToValue for Generator
[src]
impl TypeOf for Generator
[src]
impl UnsafeFromValue for &Generator
[src]
type Output = *const Generator
The output type from the unsafe coercion.
type Guard = RawRef
The raw guard returned. Read more
fn from_value(value: Value) -> Result<(Self::Output, Self::Guard), VmError>
[src]
unsafe fn unsafe_coerce(output: Self::Output) -> Self
[src]
impl UnsafeFromValue for &mut Generator
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Generator
impl !Send for Generator
impl !Sync for Generator
impl Unpin for Generator
impl !UnwindSafe for Generator
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,
pub 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.
pub 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>,