Enum avm_server::IValue[]

pub enum IValue {
Show variants Boolean(bool), S8(i8), S16(i16), S32(i32), S64(i64), U8(u8), U16(u16), U32(u32), U64(u64), F32(f32), F64(f64), String(String), ByteArray(Vec<u8, Global>), Array(Vec<IValue, Global>), I32(i32), I64(i64), Record(NEVec<IValue>),
}
Expand description

A WIT value.

Variants

Boolean(bool)
Expand description

Boolean value.

S8(i8)
Expand description

A 8-bits signed integer.

S16(i16)
Expand description

A 16-bits signed integer.

S32(i32)
Expand description

A 32-bits signed integer.

S64(i64)
Expand description

A 64-bits signed integer.

U8(u8)
Expand description

A 8-bits unsigned integer.

U16(u16)
Expand description

A 16-bits unsigned integer.

U32(u32)
Expand description

A 32-bits unsigned integer.

U64(u64)
Expand description

A 64-bits unsigned integer.

F32(f32)
Expand description

A 32-bits float.

F64(f64)
Expand description

A 64-bits float.

String(String)
Expand description

A string.

ByteArray(Vec<u8, Global>)
Expand description

Specialization of array type for byte vector.

Array(Vec<IValue, Global>)
Expand description

A byte array.

I32(i32)
Expand description

A 32-bits integer (as defined in WebAssembly core).

I64(i64)
Expand description

A 64-bits integer (as defined in WebAssembly core).

Record(NEVec<IValue>)
Expand description

A record.

Trait Implementations

impl Clone for IValue

pub fn clone(&self) -> IValue

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Debug for IValue

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

impl Default for IValue

pub fn default() -> IValue

Returns the “default value” for a type. Read more

impl From<String> for IValue

pub fn from(n: String) -> IValue

Performs the conversion.

impl From<Vec<u8, Global>> for IValue

pub fn from(n: Vec<u8, Global>) -> IValue

Performs the conversion.

impl From<f32> for IValue

pub fn from(n: f32) -> IValue

Performs the conversion.

impl From<f64> for IValue

pub fn from(n: f64) -> IValue

Performs the conversion.

impl From<i16> for IValue

pub fn from(n: i16) -> IValue

Performs the conversion.

impl From<i32> for IValue

pub fn from(n: i32) -> IValue

Performs the conversion.

impl From<i64> for IValue

pub fn from(n: i64) -> IValue

Performs the conversion.

impl From<i8> for IValue

pub fn from(n: i8) -> IValue

Performs the conversion.

impl From<u16> for IValue

pub fn from(n: u16) -> IValue

Performs the conversion.

impl From<u32> for IValue

pub fn from(n: u32) -> IValue

Performs the conversion.

impl From<u64> for IValue

pub fn from(n: u64) -> IValue

Performs the conversion.

impl From<u8> for IValue

pub fn from(n: u8) -> IValue

Performs the conversion.

impl PartialEq<IValue> for IValue

pub fn eq(&self, other: &IValue) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

pub fn ne(&self, other: &IValue) -> bool

This method tests for !=.

impl TryFrom<IValue> for Vec<u8, Global>

type Error = WasmValueNativeCastError

The type returned in the event of a conversion error.

pub fn try_from(
    w: IValue
) -> Result<Vec<u8, Global>, <Vec<u8, Global> as TryFrom<IValue>>::Error>

Performs the conversion.

impl StructuralPartialEq for IValue

Auto Trait Implementations

impl RefUnwindSafe for IValue

impl Send for IValue

impl Sync for IValue

impl Unpin for IValue

impl UnwindSafe for IValue

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Pointable for T

pub const ALIGN: usize

The alignment of pointer.

type Init = T

The type for initializers.

pub unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more

pub unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more

pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more

pub unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more

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.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

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

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

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

Performs the conversion.

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.

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

Performs the conversion.