Enum syscall::flag::PartialAllocStrategy
source · #[repr(usize)]
pub enum PartialAllocStrategy {
Optimal,
GreatestRange,
Greedy,
}
Variants§
Optimal
The allocator decides itself the size of the memory range, based on e.g. free memory ranges and other processes which require large physical memory chunks.
GreatestRange
The allocator returns the absolute greatest range it can find.
Greedy
The allocator returns the first range that fits the minimum count, without searching extra.
Implementations§
Trait Implementations§
source§impl Clone for PartialAllocStrategy
impl Clone for PartialAllocStrategy
source§fn clone(&self) -> PartialAllocStrategy
fn clone(&self) -> PartialAllocStrategy
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 PartialAllocStrategy
impl Debug for PartialAllocStrategy
source§impl Default for PartialAllocStrategy
impl Default for PartialAllocStrategy
source§impl Hash for PartialAllocStrategy
impl Hash for PartialAllocStrategy
source§impl PartialEq<PartialAllocStrategy> for PartialAllocStrategy
impl PartialEq<PartialAllocStrategy> for PartialAllocStrategy
source§fn eq(&self, other: &PartialAllocStrategy) -> bool
fn eq(&self, other: &PartialAllocStrategy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.