pub struct Space {
pub top: Address,
pub limit: Address,
pub pages: Vec<Page>,
pub size: usize,
pub size_limit: usize,
pub page_size: usize,
pub pages_count: usize,
pub allocated_size: usize,
}Fields§
§top: Address§limit: Address§pages: Vec<Page>§size: usize§size_limit: usize§page_size: usize§pages_count: usize§allocated_size: usizeImplementations§
Source§impl Space
impl Space
pub fn empty() -> Self
pub fn new(page_size: usize) -> Self
pub fn compute_size_limit(&mut self)
pub fn may_allocate_in_current(&mut self, size: usize) -> bool
pub fn add_page(&mut self, size: usize)
pub fn fast_allocate(&mut self, bytes: usize, needs_gc: &mut bool) -> Address
pub fn try_find_page_for(&self, size: usize) -> Option<(Address, Address)>
pub fn allocate(&mut self, bytes: usize, needs_gc: &mut bool) -> Address
pub fn swap(&mut self, space: &mut Space)
pub fn contains(&self, addr: Address) -> bool
pub fn clear(&mut self)
Auto Trait Implementations§
impl Freeze for Space
impl RefUnwindSafe for Space
impl Send for Space
impl Sync for Space
impl Unpin for Space
impl UnsafeUnpin for Space
impl UnwindSafe for Space
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more