[][src]Struct substrate_wasmtime::Limits

pub struct Limits { /* fields omitted */ }

Limits of tables/memories where the units of the limits are defined by the table/memory types.

A minimum is always available but the maximum may not be present.

Implementations

impl Limits[src]

pub fn new(min: u32, max: Option<u32>) -> Limits[src]

Creates a new set of limits with the minimum and maximum both specified.

pub fn at_least(min: u32) -> Limits[src]

Creates a new Limits with the min specified and no maximum specified.

pub fn min(&self) -> u32[src]

Returns the minimum amount for these limits.

pub fn max(&self) -> Option<u32>[src]

Returns the maximum amount for these limits, if specified.

Trait Implementations

impl Clone for Limits[src]

impl Debug for Limits[src]

impl Eq for Limits[src]

impl Hash for Limits[src]

impl PartialEq<Limits> for Limits[src]

impl StructuralEq for Limits[src]

impl StructuralPartialEq for Limits[src]

Auto Trait Implementations

impl RefUnwindSafe for Limits

impl Send for Limits

impl Sync for Limits

impl Unpin for Limits

impl UnwindSafe for Limits

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<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.