Enum InvokeParam

Source
pub enum InvokeParam<'a> {
    Undefined,
    Null,
    Float64(f64),
    BigInt(i64),
    String(&'a str),
    ExternRef(&'a ExternRef),
    Float32Array(&'a [f32]),
    Float64Array(&'a [f64]),
    Bool(bool),
    Uint32Array(&'a [u32]),
}

Variants§

§

Undefined

§

Null

§

Float64(f64)

§

BigInt(i64)

§

String(&'a str)

§

ExternRef(&'a ExternRef)

§

Float32Array(&'a [f32])

§

Float64Array(&'a [f64])

§

Bool(bool)

§

Uint32Array(&'a [u32])

Trait Implementations§

Source§

impl<'a> From<&'a [f32]> for InvokeParam<'a>

Source§

fn from(a: &'a [f32]) -> InvokeParam<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a [f64]> for InvokeParam<'a>

Source§

fn from(a: &'a [f64]) -> InvokeParam<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a [u32]> for InvokeParam<'a>

Source§

fn from(a: &'a [u32]) -> InvokeParam<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a ExternRef> for InvokeParam<'a>

Source§

fn from(i: &'a ExternRef) -> InvokeParam<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a str> for InvokeParam<'a>

Source§

fn from(s: &'a str) -> InvokeParam<'a>

Converts to this type from the input type.
Source§

impl From<bool> for InvokeParam<'_>

Source§

fn from(b: bool) -> InvokeParam<'_>

Converts to this type from the input type.
Source§

impl From<f64> for InvokeParam<'_>

Source§

fn from(f: f64) -> InvokeParam<'_>

Converts to this type from the input type.
Source§

impl From<i32> for InvokeParam<'_>

Source§

fn from(i: i32) -> InvokeParam<'_>

Converts to this type from the input type.
Source§

impl From<i64> for InvokeParam<'_>

Source§

fn from(i: i64) -> InvokeParam<'_>

Converts to this type from the input type.
Source§

impl From<usize> for InvokeParam<'_>

Source§

fn from(i: usize) -> InvokeParam<'_>

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<'a> Freeze for InvokeParam<'a>

§

impl<'a> RefUnwindSafe for InvokeParam<'a>

§

impl<'a> Send for InvokeParam<'a>

§

impl<'a> Sync for InvokeParam<'a>

§

impl<'a> Unpin for InvokeParam<'a>

§

impl<'a> UnwindSafe for InvokeParam<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.