[][src]Struct metered_wasmi::memory_units::Pages

pub struct Pages(pub usize);

Memory size specified in WebAssembly memory pages.

Trait Implementations

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

type Output = Pages

The resulting type after applying the / operator.

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

impl ByteSize for Pages[src]

impl From<Pages> for Bytes[src]

impl Debug 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 PartialEq<Pages> for Pages[src]

impl Ord for Pages[src]

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

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

type Output = Pages

The resulting type after applying the + operator.

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

type Output = Pages

The resulting type after applying the * operator.

impl Copy for Pages[src]

impl Clone for Pages[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Eq for Pages[src]

impl PartialOrd<Pages> for Pages[src]

Auto Trait Implementations

impl Send for Pages

impl Unpin for Pages

impl Sync for Pages

impl UnwindSafe for Pages

impl RefUnwindSafe for Pages

Blanket Implementations

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

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

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

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> RoundUpTo<Bytes> for T where
    T: Into<Bytes>, 
[src]

impl<T> RoundUpTo<Words> for T where
    T: Into<Bytes>, 
[src]

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

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

impl<T> RoundUpTo<Words> for T where
    T: Into<Bytes>, 
[src]

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