pub struct MemoryPageExtent { /* private fields */ }Expand description
Wasm and stable memory extents in 64 KiB pages at one instant.
Within one runtime epoch these are monotonic page extents, not allocator liveness or exact live-byte measurements. Consumers that need live bytes must supply an owner-derived bound for allocations within the final page.
Implementations§
Source§impl MemoryPageExtent
impl MemoryPageExtent
Sourcepub const fn wasm_pages(self) -> u64
pub const fn wasm_pages(self) -> u64
Return the Wasm linear-memory extent in 64 KiB pages.
Sourcepub const fn stable_pages(self) -> u64
pub const fn stable_pages(self) -> u64
Return the stable-memory extent in 64 KiB pages.
Trait Implementations§
Source§impl Clone for MemoryPageExtent
impl Clone for MemoryPageExtent
Source§fn clone(&self) -> MemoryPageExtent
fn clone(&self) -> MemoryPageExtent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MemoryPageExtent
Source§impl Debug for MemoryPageExtent
impl Debug for MemoryPageExtent
impl Eq for MemoryPageExtent
Source§impl PartialEq for MemoryPageExtent
impl PartialEq for MemoryPageExtent
impl StructuralPartialEq for MemoryPageExtent
Auto Trait Implementations§
impl Freeze for MemoryPageExtent
impl RefUnwindSafe for MemoryPageExtent
impl Send for MemoryPageExtent
impl Sync for MemoryPageExtent
impl Unpin for MemoryPageExtent
impl UnsafeUnpin for MemoryPageExtent
impl UnwindSafe for MemoryPageExtent
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