pub struct ContigPages {
arena_idx: usize,
kva: Kva,
cnt: usize,
ref_cnt: &'static AtomicU64,
}Expand description
A contiguous pages representation.
Fields§
§arena_idx: usize§kva: Kva§cnt: usize§ref_cnt: &'static AtomicU64Implementations§
Source§impl ContigPages
impl ContigPages
Sourcepub fn new_with_align(size: usize, align: usize) -> Option<Self>
pub fn new_with_align(size: usize, align: usize) -> Option<Self>
Allocate a page with align
Trait Implementations§
Source§impl Clone for ContigPages
impl Clone for ContigPages
Auto Trait Implementations§
impl Freeze for ContigPages
impl RefUnwindSafe for ContigPages
impl Send for ContigPages
impl Sync for ContigPages
impl Unpin for ContigPages
impl UnwindSafe for ContigPages
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)