[][src]Struct wasmer_runtime_core_fl::units::Pages

pub struct Pages(pub u32);

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

Implementations

impl Pages[src]

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

Checked add of Pages to Pages.

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<Bytes> for Pages[src]

impl From<Pages> for Bytes[src]

impl From<u32> 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.

Auto Trait Implementations

impl RefUnwindSafe for Pages

impl Send for Pages

impl Sync for Pages

impl Unpin for Pages

impl UnwindSafe for Pages

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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.