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 more