Enum kioku::GrowthStrategy [−][src]
pub enum GrowthStrategy { Constant, Percentage(u8), }
Expand description
Strategy for determining the size of new blocks.
Constant
: no growth. All blocks are the same size.Percentage
: block size is determined as a percentage of the current total arena size, with the configured block size as a minimum. Recommended values are between 10 and 50 percent.
For most use-cases Constant
is recommended.
Variants
Percentage(u8)
Trait Implementations
impl Clone for GrowthStrategy
[src]
impl Clone for GrowthStrategy
[src]fn clone(&self) -> GrowthStrategy
[src]
fn clone(&self) -> GrowthStrategy
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for GrowthStrategy
[src]
impl Debug for GrowthStrategy
[src]impl Default for GrowthStrategy
[src]
impl Default for GrowthStrategy
[src]fn default() -> GrowthStrategy
[src]
fn default() -> GrowthStrategy
[src]Returns the “default value” for a type. Read more
impl PartialEq<GrowthStrategy> for GrowthStrategy
[src]
impl PartialEq<GrowthStrategy> for GrowthStrategy
[src]fn eq(&self, other: &GrowthStrategy) -> bool
[src]
fn eq(&self, other: &GrowthStrategy) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &GrowthStrategy) -> bool
[src]
fn ne(&self, other: &GrowthStrategy) -> bool
[src]This method tests for !=
.
impl Copy for GrowthStrategy
[src]
impl Eq for GrowthStrategy
[src]
impl StructuralEq for GrowthStrategy
[src]
impl StructuralPartialEq for GrowthStrategy
[src]
Auto Trait Implementations
impl RefUnwindSafe for GrowthStrategy
impl Send for GrowthStrategy
impl Sync for GrowthStrategy
impl Unpin for GrowthStrategy
impl UnwindSafe for GrowthStrategy
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more