Trait Resize

Source
pub trait Resize: Buffer {
    // Required method
    fn resize(&mut self, capacity: usize);
}
Expand description

Resizable Buffer.

Required Methods§

Source

fn resize(&mut self, capacity: usize)

Resizes the buffer.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> Resize for WriteVectoredVecBuffer<T>
where T: AsRef<[u8]>,

Available on crate features write and std only.
Source§

impl<T> Resize for VecBuffer<T>

Available on crate feature alloc only.
Source§

impl<const HEADER_SIZE: usize, const TRAILER_SIZE: usize> Resize for WriteVecBuffer<HEADER_SIZE, TRAILER_SIZE>

Available on crate features alloc and write only.