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§
source§impl Clone for AllocationStrategy
impl Clone for AllocationStrategy
source§fn clone(&self) -> AllocationStrategy
fn clone(&self) -> AllocationStrategy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AllocationStrategy
impl Debug for AllocationStrategy
impl Copy for AllocationStrategy
Auto Trait Implementations§
impl Freeze for AllocationStrategy
impl RefUnwindSafe for AllocationStrategy
impl Send for AllocationStrategy
impl Sync for AllocationStrategy
impl Unpin for AllocationStrategy
impl UnwindSafe for AllocationStrategy
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