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
sourceimpl Clone for PartialAllocStrategy
impl Clone for PartialAllocStrategy
sourcefn clone(&self) -> PartialAllocStrategy
fn clone(&self) -> PartialAllocStrategy
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 PartialAllocStrategy
impl Debug for PartialAllocStrategy
sourceimpl Default for PartialAllocStrategy
impl Default for PartialAllocStrategy
sourceimpl Hash for PartialAllocStrategy
impl Hash for PartialAllocStrategy
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
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