pub struct BlockMeta { /* private fields */ }Implementations§
source§impl BlockMeta
impl BlockMeta
sourcepub fn find_hole(&self, start_byte: usize, alloc_size: usize) -> Option<Hole>
pub fn find_hole(&self, start_byte: usize, alloc_size: usize) -> Option<Hole>
search hole upward
sourcepub fn mark_range(&mut self, low: usize, high: usize)
pub fn mark_range(&mut self, low: usize, high: usize)
Mark the range, caller must check low and high is safe
sourcepub fn unmark_line(&mut self, idx: usize)
pub fn unmark_line(&mut self, idx: usize)
Unmark the indexed line
sourcepub fn unmark_range(&mut self, low: usize, high: usize)
pub fn unmark_range(&mut self, low: usize, high: usize)
Unmark the range, caller must check low and high is safe
sourcepub fn set_mark_line(&mut self, mark: &Mark, idx: usize)
pub fn set_mark_line(&mut self, mark: &Mark, idx: usize)
Set mark the indexed line
sourcepub fn set_mark_range(&mut self, mark: &Mark, low: usize, high: usize)
pub fn set_mark_range(&mut self, mark: &Mark, low: usize, high: usize)
Set mark the range, caller must check low and high is safe
sourcepub fn mark_status_str(&self) -> String
pub fn mark_status_str(&self) -> String
Returns the mark status str of this BlockMeta.
pub fn mark_status_vec_str(&self) -> Vec<String>
pub fn is_marked(&self, idx: usize) -> bool
pub fn is_unmarked(&self, idx: usize) -> bool
pub fn is_fresh(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BlockMeta
impl RefUnwindSafe for BlockMeta
impl !Send for BlockMeta
impl !Sync for BlockMeta
impl Unpin for BlockMeta
impl UnwindSafe for BlockMeta
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