Struct docs::immix::blocks::LargeBlock
source · pub struct LargeBlock {
pub ptr: BlockPointer,
pub size: BlockSize,
pub mark: Mark,
}Fields§
§ptr: BlockPointer§size: BlockSize§mark: MarkImplementations§
source§impl LargeBlock
impl LargeBlock
sourcepub fn new(size: BlockSize) -> Result<Self, BlockError>
pub fn new(size: BlockSize) -> Result<Self, BlockError>
create new memory block.
§Errors
This function will return an error if [size] is not a power of two or cannot allocate memory
pub fn as_ptr(&self) -> *const u8
pub fn dealloc_block(self)
pub fn set_mark(&mut self, mark: &Mark)
pub fn unmark(&mut self)
pub fn is_marked(&self) -> bool
pub fn is_unmarked(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LargeBlock
impl RefUnwindSafe for LargeBlock
impl !Send for LargeBlock
impl !Sync for LargeBlock
impl Unpin for LargeBlock
impl UnwindSafe for LargeBlock
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