pub struct NoOutput;Expand description
A value used in coordination with branch to indicate there is no value to be sent to a pipe.
§Examples
use async_pipes::{NoOutput, BoxedAnySend, branch};
let outputs: Vec<Option<BoxedAnySend>> = branch![
"one",
NoOutput,
3,
];
assert!(outputs[0].is_some());
assert!(outputs[1].is_none());
assert!(outputs[2].is_some());Trait Implementations§
Source§impl Ord for NoOutput
impl Ord for NoOutput
Source§impl PartialOrd for NoOutput
impl PartialOrd for NoOutput
impl Eq for NoOutput
impl StructuralPartialEq for NoOutput
Auto Trait Implementations§
impl Freeze for NoOutput
impl RefUnwindSafe for NoOutput
impl Send for NoOutput
impl Sync for NoOutput
impl Unpin for NoOutput
impl UnwindSafe for NoOutput
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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