pub struct NullSink<T> { /* private fields */ }Expand description
Sink that discards every item.
§Example
use pipe_io::sink::{NullSink, Sink};
let mut s: NullSink<u32> = NullSink::new();
s.write(42).unwrap();Implementations§
Trait Implementations§
Source§impl<T: 'static> Sink for NullSink<T>
impl<T: 'static> Sink for NullSink<T>
Auto Trait Implementations§
impl<T> Freeze for NullSink<T>
impl<T> RefUnwindSafe for NullSink<T>
impl<T> Send for NullSink<T>
impl<T> Sync for NullSink<T>
impl<T> Unpin for NullSink<T>
impl<T> UnsafeUnpin for NullSink<T>
impl<T> UnwindSafe for NullSink<T>
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