pub struct AllocBuffer;Expand description
Allocates memory using the global allocator.
Trait Implementations§
Source§impl<'a> BufferProvider<'a> for AllocBuffer
impl<'a> BufferProvider<'a> for AllocBuffer
Source§fn provide_buffer(
&mut self,
len: usize,
) -> Result<Self::Buffer, Self::ProvisionError>
fn provide_buffer( &mut self, len: usize, ) -> Result<Self::Buffer, Self::ProvisionError>
Allocates len bytes on the heap
Source§type ProvisionError = Infallible
type ProvisionError = Infallible
The error type returned from a failed buffer provision.
Auto Trait Implementations§
impl Freeze for AllocBuffer
impl RefUnwindSafe for AllocBuffer
impl Send for AllocBuffer
impl Sync for AllocBuffer
impl Unpin for AllocBuffer
impl UnsafeUnpin for AllocBuffer
impl UnwindSafe for AllocBuffer
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