pub struct NoReuseBufferProvider<A>(pub A);
Expand description
Provides an implementation of BufferProvider
from a BufferAlloc
A
that never attempts to reuse the input buffer, and always create a new
buffer from the allocator A
.
Tuple Fields§
§0: A
Trait Implementations§
Source§impl<I: FragmentedBuffer, O: ReusableBuffer, A: BufferAlloc<O>> BufferProvider<I, O> for NoReuseBufferProvider<A>
impl<I: FragmentedBuffer, O: ReusableBuffer, A: BufferAlloc<O>> BufferProvider<I, O> for NoReuseBufferProvider<A>
Source§type Error = <A as BufferAlloc<O>>::Error
type Error = <A as BufferAlloc<O>>::Error
The type of errors returned from
reuse_or_realloc
.Auto Trait Implementations§
impl<A> Freeze for NoReuseBufferProvider<A>where
A: Freeze,
impl<A> RefUnwindSafe for NoReuseBufferProvider<A>where
A: RefUnwindSafe,
impl<A> Send for NoReuseBufferProvider<A>where
A: Send,
impl<A> Sync for NoReuseBufferProvider<A>where
A: Sync,
impl<A> Unpin for NoReuseBufferProvider<A>where
A: Unpin,
impl<A> UnwindSafe for NoReuseBufferProvider<A>where
A: 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