pub enum GeneratorStep {
Yielded(Ref),
Exhausted,
}Expand description
Outcome of advancing a Generator: a yielded value, or exhaustion.
Variants§
Yielded(Ref)
The next value the generator produces.
Exhausted
The generator has yielded every value and is drained.
Trait Implementations§
Source§impl Clone for GeneratorStep
impl Clone for GeneratorStep
Source§fn clone(&self) -> GeneratorStep
fn clone(&self) -> GeneratorStep
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GeneratorStep
impl Debug for GeneratorStep
impl Eq for GeneratorStep
Source§impl PartialEq for GeneratorStep
impl PartialEq for GeneratorStep
Source§fn eq(&self, other: &GeneratorStep) -> bool
fn eq(&self, other: &GeneratorStep) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GeneratorStep
Auto Trait Implementations§
impl Freeze for GeneratorStep
impl RefUnwindSafe for GeneratorStep
impl Send for GeneratorStep
impl Sync for GeneratorStep
impl Unpin for GeneratorStep
impl UnsafeUnpin for GeneratorStep
impl UnwindSafe for GeneratorStep
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more