pub struct ChunksAllocator { /* private fields */ }
Implementations§
Source§impl ChunksAllocator
impl ChunksAllocator
pub fn initialize( &self, memory: MemoryDataSize, chunks_log_size: usize, min_chunks_count: usize, )
pub fn giveback_free_memory(&self)
pub fn giveback_all_memory(&self)
pub fn request_chunk(&self, _: ()) -> AllocatedChunk
pub fn get_free_memory(&self) -> MemoryDataSize
pub fn get_reserved_memory(&self) -> MemoryDataSize
pub fn get_total_memory(&self) -> MemoryDataSize
pub fn deinitialize(&self)
Trait Implementations§
impl Send for ChunksAllocator
impl Sync for ChunksAllocator
Auto Trait Implementations§
impl !Freeze for ChunksAllocator
impl !RefUnwindSafe for ChunksAllocator
impl Unpin for ChunksAllocator
impl UnwindSafe for ChunksAllocator
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more