[][src]Struct wasmer::Pages

pub struct Pages(pub u32);

Units of WebAssembly pages (as specified to be 65,536 bytes).

Implementations

impl Pages[src]

pub const fn max_value() -> Pages[src]

Returns the largest value that can be represented by the Pages type.

This is defined by the WebAssembly standard as 65,536 pages.

pub fn checked_add(self, rhs: Pages) -> Option<Pages>[src]

Checked addition. Computes self + rhs, returning None if overflow occurred.

pub fn bytes(self) -> Bytes[src]

Calculate number of bytes from pages.

Trait Implementations

impl<T> Add<T> for Pages where
    T: Into<Pages>, 
[src]

type Output = Pages

The resulting type after applying the + operator.

impl Clone for Pages[src]

impl Copy for Pages[src]

impl Debug for Pages[src]

impl<'de> Deserialize<'de> for Pages[src]

impl Eq for Pages[src]

impl From<Pages> for Bytes[src]

impl From<u32> for Pages[src]

impl Hash for Pages[src]

impl Ord for Pages[src]

impl PartialEq<Pages> for Pages[src]

impl PartialOrd<Pages> for Pages[src]

impl Serialize for Pages[src]

impl StructuralEq for Pages[src]

impl StructuralPartialEq for Pages[src]

impl<T> Sub<T> for Pages where
    T: Into<Pages>, 
[src]

type Output = Pages

The resulting type after applying the - operator.

impl TryFrom<Bytes> for Pages[src]

type Error = PageCountOutOfRange

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,