pub struct Once<Y>(/* private fields */);Trait Implementations§
Auto Trait Implementations§
impl<Y> Freeze for Once<Y>where
Y: Freeze,
impl<Y> RefUnwindSafe for Once<Y>where
Y: RefUnwindSafe,
impl<Y> Send for Once<Y>where
Y: Send,
impl<Y> Sync for Once<Y>where
Y: Sync,
impl<Y> Unpin for Once<Y>where
Y: Unpin,
impl<Y> UnsafeUnpin for Once<Y>where
Y: UnsafeUnpin,
impl<Y> UnwindSafe for Once<Y>where
Y: UnwindSafe,
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
Source§impl<G, R> GeneratorExt<R> for Gwhere
G: Generator<R>,
impl<G, R> GeneratorExt<R> for Gwhere
G: Generator<R>,
fn receiving<F, U>(self, f: F) -> Receiving<Self, F>
fn compose<G: Generator<Self::Yield>>(self, then: G) -> Compose<Self, G>where
Self: Sized,
fn map_complete<U, F>(self, f: F) -> MapComplete<Self, F>
fn map_yield<U, F>(self, f: F) -> MapYield<Self, F>
fn and_then<G, F>(self, f: F) -> AndThen<Self, F, G>
fn flatten(self) -> Flatten<Self, Self::Yield>
Source§impl<G> GeneratorIterator for G
impl<G> GeneratorIterator for G
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more