[][src]Struct ico_memory::mem::memory_pool::MemoryPool

pub struct MemoryPool { /* fields omitted */ }

Methods

impl<'a> MemoryPool[src]

pub const unsafe fn from_static(
    block_size: usize,
    slice: *mut AtomicUsize,
    capacity: usize
) -> MemoryPool
[src]

pub unsafe fn allocate(&self) -> *mut u8[src]

pub unsafe fn deallocate(&self, ptr: *mut u8)[src]

This is unsafe, because if you pass back a bad pointer there is no checking.

pub unsafe fn clear(&self)[src]

Auto Trait Implementations

impl Unpin for MemoryPool

impl Send for MemoryPool

impl Sync for MemoryPool

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]