pub struct FeoxAllocator;
Implementations§
Source§impl FeoxAllocator
impl FeoxAllocator
pub fn allocate(size: usize) -> Result<NonNull<u8>>
Sourcepub fn allocate_aligned(size: usize, alignment: usize) -> Result<NonNull<u8>>
pub fn allocate_aligned(size: usize, alignment: usize) -> Result<NonNull<u8>>
Allocate memory with specific alignment (for O_DIRECT)
pub fn deallocate(ptr: NonNull<u8>, size: usize)
Sourcepub fn deallocate_aligned(ptr: NonNull<u8>, size: usize, alignment: usize)
pub fn deallocate_aligned(ptr: NonNull<u8>, size: usize, alignment: usize)
Deallocate aligned memory
pub fn get_allocated() -> usize
Auto Trait Implementations§
impl Freeze for FeoxAllocator
impl RefUnwindSafe for FeoxAllocator
impl Send for FeoxAllocator
impl Sync for FeoxAllocator
impl Unpin for FeoxAllocator
impl UnwindSafe for FeoxAllocator
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