pub enum GeneratorState {
SuspendedStart,
SuspendedYield,
Executing,
Completed,
}Expand description
Generator state.
Variants§
Trait Implementations§
Source§impl Clone for GeneratorState
impl Clone for GeneratorState
Source§fn clone(&self) -> GeneratorState
fn clone(&self) -> GeneratorState
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 GeneratorState
impl Debug for GeneratorState
Source§impl PartialEq for GeneratorState
impl PartialEq for GeneratorState
Source§fn eq(&self, other: &GeneratorState) -> bool
fn eq(&self, other: &GeneratorState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GeneratorState
Auto Trait Implementations§
impl Freeze for GeneratorState
impl RefUnwindSafe for GeneratorState
impl Send for GeneratorState
impl Sync for GeneratorState
impl Unpin for GeneratorState
impl UnsafeUnpin for GeneratorState
impl UnwindSafe for GeneratorState
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