pub struct Allocator<'a> {
    pub offsets: Vec<u32>,
    pub dsdb_location: u32,
    pub free_list: Vec<Vec<u32>>,
    /* private fields */
}

Fields

offsets: Vec<u32>

The offsets to each block(?) (TODO write this.)

dsdb_location: u32

It is a ‘table of contents’, but it seems that there is only ever 1 entry, “DSDB”.

free_list: Vec<Vec<u32>>

locations of data allocted by the buddy-allocator. (TODO: write this.)

Implementations

Create a new alloctor, initalizing all important data needed for traversal.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.