pub struct BufCfg<D: Into<Vec<u8>>> { /* fields omitted */ }
Configure an empty buffer with specified capacity.
Configure a buffer with the data in initial_data
.
The buffer capacity will be determined by the greater of initial_data.len()
and min_capacity
.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.