pub enum AllocPolicy {
FirstMatch,
LastMatch,
ExactMatch(u64),
}
Expand description
Policy for resource allocation.
Variants§
FirstMatch
Allocate the first matched entry.
LastMatch
Allocate first matched entry from the end of the range.
ExactMatch(u64)
Allocate a memory slot starting with the specified address if it is available.
Trait Implementations§
Source§impl Clone for AllocPolicy
impl Clone for AllocPolicy
Source§fn clone(&self) -> AllocPolicy
fn clone(&self) -> AllocPolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AllocPolicy
impl Debug for AllocPolicy
Source§impl Default for AllocPolicy
impl Default for AllocPolicy
Source§fn default() -> AllocPolicy
fn default() -> AllocPolicy
Returns the “default value” for a type. Read more
Source§impl PartialEq for AllocPolicy
impl PartialEq for AllocPolicy
impl Copy for AllocPolicy
impl Eq for AllocPolicy
impl StructuralPartialEq for AllocPolicy
Auto Trait Implementations§
impl Freeze for AllocPolicy
impl RefUnwindSafe for AllocPolicy
impl Send for AllocPolicy
impl Sync for AllocPolicy
impl Unpin for AllocPolicy
impl UnwindSafe for AllocPolicy
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