pub enum GrowthPolicy {
Fixed,
ReplaceBeforeShare {
maximum_len: usize,
},
}Expand description
Capacity policy while a region is still private and quiescent.
Variants§
Fixed
Mapping size is fixed at allocation.
Growth replaces the private mapping up to an inclusive logical limit.
Trait Implementations§
Source§impl Clone for GrowthPolicy
impl Clone for GrowthPolicy
Source§fn clone(&self) -> GrowthPolicy
fn clone(&self) -> GrowthPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GrowthPolicy
Source§impl Debug for GrowthPolicy
impl Debug for GrowthPolicy
impl Eq for GrowthPolicy
Source§impl PartialEq for GrowthPolicy
impl PartialEq for GrowthPolicy
impl StructuralPartialEq for GrowthPolicy
Auto Trait Implementations§
impl Freeze for GrowthPolicy
impl RefUnwindSafe for GrowthPolicy
impl Send for GrowthPolicy
impl Sync for GrowthPolicy
impl Unpin for GrowthPolicy
impl UnsafeUnpin for GrowthPolicy
impl UnwindSafe for GrowthPolicy
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