pub struct NoSink;Expand description
A sink that keeps nothing. What every caller that only wants oids passes, and what makes “this resolve built no exploded rows” a visible choice rather than an omission.
Trait Implementations§
Source§impl PayloadSink for NoSink
impl PayloadSink for NoSink
Source§fn wants(&self, _kind: GitObjectKind) -> bool
fn wants(&self, _kind: GitObjectKind) -> bool
It keeps nothing, so it is never handed anything — and a resolve with
NoSink therefore copies no payload at all on its way out.
Auto Trait Implementations§
impl Freeze for NoSink
impl RefUnwindSafe for NoSink
impl Send for NoSink
impl Sync for NoSink
impl Unpin for NoSink
impl UnsafeUnpin for NoSink
impl UnwindSafe for NoSink
Blanket Implementations§
impl<T> Allocation for T
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