Enum capnp::message::AllocationStrategy
source · [−]pub enum AllocationStrategy {
FixedSize,
GrowHeuristically,
}
Variants
FixedSize
Allocates the same number of words for each segment, to the extent possible. This strategy is primarily useful for testing cross-segment pointers.
GrowHeuristically
Increases segment size by a multiplicative factor for each subsequent segment.
Trait Implementations
sourceimpl Clone for AllocationStrategy
impl Clone for AllocationStrategy
sourcefn clone(&self) -> AllocationStrategy
fn clone(&self) -> AllocationStrategy
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AllocationStrategy
impl Debug for AllocationStrategy
impl Copy for AllocationStrategy
Auto Trait Implementations
impl RefUnwindSafe for AllocationStrategy
impl Send for AllocationStrategy
impl Sync for AllocationStrategy
impl Unpin for AllocationStrategy
impl UnwindSafe for AllocationStrategy
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more