Enum drone_core::fib::FiberState [−][src]
pub enum FiberState<Y, R> {
Yielded(Y),
Complete(R),
}The result of a fiber resumption.
The enum is returned from the Fiber::resume method and indicates the
possible return value of a fiber.
Variants
The fiber suspended with a value.
The fiber completed with a return value.
Implementations
impl<Y, R> FiberState<Y, R>[src]
impl<Y, R> FiberState<Y, R>[src]pub fn is_yielded(&self) -> bool[src]
Returns true if this is FiberState::Yielded.
pub fn is_complete(&self) -> bool[src]
Returns true if this is FiberState::Complete.
Trait Implementations
impl<Y: Clone, R: Clone> Clone for FiberState<Y, R>[src]
impl<Y: Clone, R: Clone> Clone for FiberState<Y, R>[src]fn clone(&self) -> FiberState<Y, R>[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<Y: Copy, R: Copy> Copy for FiberState<Y, R>[src]
impl<Y: Copy, R: Copy> Copy for FiberState<Y, R>[src]impl<Y: Debug, R: Debug> Debug for FiberState<Y, R>[src]
impl<Y: Debug, R: Debug> Debug for FiberState<Y, R>[src]impl<Y: Eq, R: Eq> Eq for FiberState<Y, R>[src]
impl<Y: Eq, R: Eq> Eq for FiberState<Y, R>[src]impl<Y, R> From<GeneratorState<Y, R>> for FiberState<Y, R>[src]
impl<Y, R> From<GeneratorState<Y, R>> for FiberState<Y, R>[src]fn from(state: GeneratorState<Y, R>) -> Self[src]
impl<Y: Hash, R: Hash> Hash for FiberState<Y, R>[src]
impl<Y: Hash, R: Hash> Hash for FiberState<Y, R>[src]impl<Y: Ord, R: Ord> Ord for FiberState<Y, R>[src]
impl<Y: Ord, R: Ord> Ord for FiberState<Y, R>[src]impl<Y: PartialEq, R: PartialEq> PartialEq<FiberState<Y, R>> for FiberState<Y, R>[src]
impl<Y: PartialEq, R: PartialEq> PartialEq<FiberState<Y, R>> for FiberState<Y, R>[src]fn eq(&self, other: &FiberState<Y, R>) -> bool[src]
fn ne(&self, other: &FiberState<Y, R>) -> bool[src]
impl<Y: PartialOrd, R: PartialOrd> PartialOrd<FiberState<Y, R>> for FiberState<Y, R>[src]
impl<Y: PartialOrd, R: PartialOrd> PartialOrd<FiberState<Y, R>> for FiberState<Y, R>[src]fn partial_cmp(&self, other: &FiberState<Y, R>) -> Option<Ordering>[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl<Y, R> StructuralEq for FiberState<Y, R>[src]
impl<Y, R> StructuralEq for FiberState<Y, R>[src]impl<Y, R> StructuralPartialEq for FiberState<Y, R>[src]
impl<Y, R> StructuralPartialEq for FiberState<Y, R>[src]Auto Trait Implementations
impl<Y, R> Send for FiberState<Y, R> where
R: Send,
Y: Send,
impl<Y, R> Send for FiberState<Y, R> where
R: Send,
Y: Send, impl<Y, R> Sync for FiberState<Y, R> where
R: Sync,
Y: Sync,
impl<Y, R> Sync for FiberState<Y, R> where
R: Sync,
Y: Sync, impl<Y, R> Unpin for FiberState<Y, R> where
R: Unpin,
Y: Unpin,
impl<Y, R> Unpin for FiberState<Y, R> where
R: Unpin,
Y: Unpin, Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
The resulting type after obtaining ownership.