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 ==
.impl Copy for PartialAllocStrategy
impl Eq for PartialAllocStrategy
impl StructuralEq for PartialAllocStrategy
impl StructuralPartialEq for PartialAllocStrategy
Auto Trait Implementations§
impl RefUnwindSafe for PartialAllocStrategy
impl Send for PartialAllocStrategy
impl Sync for PartialAllocStrategy
impl Unpin for PartialAllocStrategy
impl UnwindSafe for PartialAllocStrategy
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