Enum drone_core::fib::FiberState [−][src]
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]
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]
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: Debug, R: Debug> Debug 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]
fn from(state: GeneratorState<Y, R>) -> Self
[src]
impl<Y: Hash, R: Hash> Hash for FiberState<Y, R>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<Y: Ord, R: Ord> Ord for FiberState<Y, R>
[src]
fn cmp(&self, other: &FiberState<Y, R>) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[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]
fn partial_cmp(&self, other: &FiberState<Y, R>) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<Y, R> StructuralEq 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,
R: Send,
Y: Send,
impl<Y, R> Sync for FiberState<Y, R> where
R: Sync,
Y: Sync,
R: Sync,
Y: Sync,
impl<Y, R> Unpin for FiberState<Y, R> where
R: Unpin,
Y: Unpin,
R: Unpin,
Y: Unpin,
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> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut 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.
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>,