Struct slabmalloc_safe::MappedPages8k
source · pub struct MappedPages8k(/* private fields */);
Expand description
A wrapper type around MappedPages which ensures that the MappedPages have a size and alignment of 8 KiB and are writable.
Implementations§
source§impl MappedPages8k
impl MappedPages8k
pub const SIZE: usize = 8_192usize
pub const BUFFER_SIZE: usize = 8_112usize
pub const METADATA_SIZE: usize = 80usize
pub const HEAP_ID_OFFSET: usize = 8_112usize
sourcepub fn new(mp: MappedPages) -> Result<MappedPages8k, &'static str>
pub fn new(mp: MappedPages) -> Result<MappedPages8k, &'static str>
Creates a MappedPages8k object from MappedPages that have a size and alignment of 8 KiB and are writable.
pub fn start_address(&self) -> VirtualAddress
Auto Trait Implementations§
impl RefUnwindSafe for MappedPages8k
impl Send for MappedPages8k
impl Sync for MappedPages8k
impl Unpin for MappedPages8k
impl UnwindSafe for MappedPages8k
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