pub struct WasmPageCount(/* private fields */);Expand description
WebAssembly page count.
Implementations§
Source§impl WasmPageCount
impl WasmPageCount
Sourcepub fn from_bytes(bytes: u64) -> Result<Self, WasmMemoryError>
pub fn from_bytes(bytes: u64) -> Result<Self, WasmMemoryError>
Creates a page count from a byte count.
Trait Implementations§
Source§impl Clone for WasmPageCount
impl Clone for WasmPageCount
Source§fn clone(&self) -> WasmPageCount
fn clone(&self) -> WasmPageCount
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 moreSource§impl Debug for WasmPageCount
impl Debug for WasmPageCount
Source§impl Default for WasmPageCount
impl Default for WasmPageCount
Source§fn default() -> WasmPageCount
fn default() -> WasmPageCount
Returns the “default value” for a type. Read more
Source§impl Display for WasmPageCount
impl Display for WasmPageCount
Source§impl From<WasmPageCount> for MemoryMaximum
impl From<WasmPageCount> for MemoryMaximum
Source§fn from(value: WasmPageCount) -> Self
fn from(value: WasmPageCount) -> Self
Converts to this type from the input type.
Source§impl From<WasmPageCount> for MemoryMinimum
impl From<WasmPageCount> for MemoryMinimum
Source§fn from(value: WasmPageCount) -> Self
fn from(value: WasmPageCount) -> Self
Converts to this type from the input type.
Source§impl Hash for WasmPageCount
impl Hash for WasmPageCount
Source§impl Ord for WasmPageCount
impl Ord for WasmPageCount
Source§fn cmp(&self, other: &WasmPageCount) -> Ordering
fn cmp(&self, other: &WasmPageCount) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WasmPageCount
impl PartialEq for WasmPageCount
Source§fn eq(&self, other: &WasmPageCount) -> bool
fn eq(&self, other: &WasmPageCount) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for WasmPageCount
impl PartialOrd for WasmPageCount
impl Copy for WasmPageCount
impl Eq for WasmPageCount
impl StructuralPartialEq for WasmPageCount
Auto Trait Implementations§
impl Freeze for WasmPageCount
impl RefUnwindSafe for WasmPageCount
impl Send for WasmPageCount
impl Sync for WasmPageCount
impl Unpin for WasmPageCount
impl UnsafeUnpin for WasmPageCount
impl UnwindSafe for WasmPageCount
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