[][src]Enum substrate_primitives::sandbox::TypedValue

pub enum TypedValue {
    I32(i32),
    I64(i64),
    F32(i32),
    F64(i64),
}

Representation of a typed wasm value.

Variants

I32(i32)

Value of 32-bit signed or unsigned integer.

I64(i64)

Value of 64-bit signed or unsigned integer.

F32(i32)

Value of 32-bit IEEE 754-2008 floating point number represented as a bit pattern.

F64(i64)

Value of 64-bit IEEE 754-2008 floating point number represented as a bit pattern.

Methods

impl TypedValue[src]

pub fn as_i32(&self) -> Option<i32>[src]

Returns Some if this value of type I32.

Trait Implementations

impl Clone for TypedValue[src]

impl PartialEq<TypedValue> for TypedValue[src]

impl From<RuntimeValue> for TypedValue[src]

impl From<TypedValue> for RuntimeValue[src]

impl From<TypedValue> for ReturnValue[src]

impl Copy for TypedValue[src]

impl Debug for TypedValue[src]

impl Encode for TypedValue[src]

impl Decode for TypedValue[src]

Auto Trait Implementations

Blanket Implementations

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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

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

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

impl<S> Codec for S where
    S: Encode + Decode
[src]

impl<T> KeyedVec for T where
    T: Codec
[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> MaybeDebug for T where
    T: Debug
[src]