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
Auto Trait Implementations
impl<'a> RefUnwindSafe for Allocator<'a>
impl<'a> Send for Allocator<'a>
impl<'a> Sync for Allocator<'a>
impl<'a> Unpin for Allocator<'a>
impl<'a> UnwindSafe for Allocator<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more