Struct ratsat::alloc::RegionAllocator
[−]
[src]
pub struct RegionAllocator<T: Copy> { /* fields omitted */ }
Methods
impl<T: Copy + Default> RegionAllocator<T>
[src]
pub fn new(start_cap: u32) -> Self
[src]
pub fn len(&self) -> u32
[src]
pub fn wasted(&self) -> u32
[src]
pub fn alloc(&mut self, size: u32) -> Ref<T>
[src]
pub fn free(&mut self, size: u32)
[src]
pub fn subslice(&self, r: Ref<T>, len: u32) -> &[T]
[src]
pub fn subslice_mut(&mut self, r: Ref<T>, len: u32) -> &mut [T]
[src]
Trait Implementations
impl<T: Debug + Copy> Debug for RegionAllocator<T>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T: Copy> Index<Ref<T>> for RegionAllocator<T>
[src]
type Output = T
The returned type after indexing.
fn index(&self, index: Ref<T>) -> &Self::Output
[src]
Performs the indexing (container[index]
) operation.
impl<T: Copy> IndexMut<Ref<T>> for RegionAllocator<T>
[src]
Auto Trait Implementations
impl<T> Send for RegionAllocator<T> where
T: Send,
T: Send,
impl<T> Sync for RegionAllocator<T> where
T: Sync,
T: Sync,