Struct async_pipes::NoOutput
source · 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 PartialEq for NoOutput
impl PartialEq for NoOutput
source§impl PartialOrd for NoOutput
impl PartialOrd for NoOutput
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for NoOutput
impl StructuralEq for NoOutput
impl StructuralPartialEq for NoOutput
Auto Trait Implementations§
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