[][src]Struct crndm::alloc::default::BuddyAlloc

pub struct BuddyAlloc {}

A memory allocator with buddy allocation mechanism

To define a new buddy allocator type as a memory pool, you may use pool!() macro.

Implementations

impl BuddyAlloc[src]

pub fn open_impl(filename: &str) -> Result<Self>[src]

Opens a memory pool file and returns an instance of BuddyAlloc if success. The pool remains open as long as the instance lives.

Trait Implementations

impl Drop for BuddyAlloc[src]

impl MemPool for BuddyAlloc[src]

pub unsafe fn format(filename: &str) -> Result<()>[src]

Formats the image file

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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> 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<V, T> VZip<V> for T where
    V: MultiLane<T>,