pub enum GrowthStrategy {
Linear(usize),
Exponential(f64),
Fixed,
}Expand description
Strategy for growing buffers
Variants§
Linear(usize)
Grow linearly by fixed amount
Exponential(f64)
Grow exponentially by multiplier
Fixed
Fixed size, don’t grow
Trait Implementations§
Source§impl Clone for GrowthStrategy
impl Clone for GrowthStrategy
Source§fn clone(&self) -> GrowthStrategy
fn clone(&self) -> GrowthStrategy
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GrowthStrategy
impl RefUnwindSafe for GrowthStrategy
impl Send for GrowthStrategy
impl Sync for GrowthStrategy
impl Unpin for GrowthStrategy
impl UnwindSafe for GrowthStrategy
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