[−][src]Enum drone_core::fib::FiberState
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.
Methods
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, R> From<GeneratorState<Y, R>> for FiberState<Y, R>
[src]
fn from(state: GeneratorState<Y, R>) -> Self
[src]
impl<Y: Debug, R: Debug> Debug 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: Eq, R: Eq> Eq for FiberState<Y, R>
[src]
impl<Y: Ord, R: Ord> Ord for FiberState<Y, R>
[src]
fn cmp(&self, other: &FiberState<Y, R>) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[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]
fn lt(&self, other: &FiberState<Y, R>) -> bool
[src]
fn le(&self, other: &FiberState<Y, R>) -> bool
[src]
fn gt(&self, other: &FiberState<Y, R>) -> bool
[src]
fn ge(&self, other: &FiberState<Y, R>) -> bool
[src]
impl<Y: Hash, R: Hash> Hash for FiberState<Y, R>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<Y: Copy, R: Copy> Copy for FiberState<Y, R>
[src]
impl<Y, R> StructuralPartialEq for FiberState<Y, R>
[src]
impl<Y, R> StructuralEq for FiberState<Y, R>
[src]
impl<Y: Clone, R: Clone> Clone for FiberState<Y, R>
[src]
fn clone(&self) -> FiberState<Y, R>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl<Y, R> Unpin for FiberState<Y, R> where
R: Unpin,
Y: Unpin,
R: Unpin,
Y: Unpin,
impl<Y, R> Send for FiberState<Y, R> where
R: Send,
Y: Send,
R: Send,
Y: Send,
impl<Y, R> Sync for FiberState<Y, R> where
R: Sync,
Y: Sync,
R: Sync,
Y: Sync,
Blanket Implementations
impl<T> From<T> for T
[src]
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.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.