pub struct Arena { /* private fields */ }Implementations§
Source§impl Arena
impl Arena
pub fn new(capacity: usize) -> Self
pub fn with_default_capacity() -> Self
pub fn alloc(&self, size: usize) -> Option<*mut u8>
pub fn alloc_aligned(&self, size: usize, align: usize) -> Option<*mut u8>
pub fn reset(&self)
pub fn capacity(&self) -> usize
pub fn used(&self) -> usize
pub fn remaining(&self) -> usize
pub fn usage(&self) -> f32
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
Trait Implementations§
impl Send for Arena
impl Sync for Arena
Auto Trait Implementations§
impl !Freeze for Arena
impl RefUnwindSafe for Arena
impl Unpin for Arena
impl UnsafeUnpin for Arena
impl UnwindSafe for Arena
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