pub enum BackingAllocation {
Global,
Hugepages(HugepageSize),
}Expand description
Type of backing allocation
Variants§
Global
Allocates using whatever #[global_allocator] is set to.
Hugepages(HugepageSize)
Allocates via mmap(MAP_HUGETLB) at the given hugepage size.
Auto Trait Implementations§
impl Freeze for BackingAllocation
impl RefUnwindSafe for BackingAllocation
impl Send for BackingAllocation
impl Sync for BackingAllocation
impl Unpin for BackingAllocation
impl UnsafeUnpin for BackingAllocation
impl UnwindSafe for BackingAllocation
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