#[repr(transparent)]
pub struct UntypedValue { /* private fields */ }
Expand description

An untyped Value.

Provides a dense and simple interface to all functional Wasm operations.

Implementations§

Returns the underlying bits of the UntypedValue.

Converts the UntypedValue into a Value.

Execute i32.add Wasm operation.

Execute i64.add Wasm operation.

Execute i32.sub Wasm operation.

Execute i64.sub Wasm operation.

Execute i32.mul Wasm operation.

Execute i64.mul Wasm operation.

Execute i32.div_s Wasm operation.

Execute i64.div_s Wasm operation.

Execute i32.div_u Wasm operation.

Execute i64.div_u Wasm operation.

Execute i32.rem_s Wasm operation.

Execute i64.rem_s Wasm operation.

Execute i32.rem_u Wasm operation.

Execute i64.rem_u Wasm operation.

Execute i32.and Wasm operation.

Execute i64.and Wasm operation.

Execute i32.or Wasm operation.

Execute i64.or Wasm operation.

Execute i32.xor Wasm operation.

Execute i64.xor Wasm operation.

Execute i32.shl Wasm operation.

Execute i64.shl Wasm operation.

Execute i32.shr_s Wasm operation.

Execute i64.shr_s Wasm operation.

Execute i32.shr_u Wasm operation.

Execute i64.shr_u Wasm operation.

Execute i32.clz Wasm operation.

Execute i64.clz Wasm operation.

Execute i32.ctz Wasm operation.

Execute i64.ctz Wasm operation.

Execute i32.popcnt Wasm operation.

Execute i64.popcnt Wasm operation.

Execute i32.rotl Wasm operation.

Execute i64.rotl Wasm operation.

Execute i32.rotr Wasm operation.

Execute i64.rotr Wasm operation.

Execute i32.eqz Wasm operation.

Execute i64.eqz Wasm operation.

Execute i32.eq Wasm operation.

Execute i64.eq Wasm operation.

Execute f32.eq Wasm operation.

Execute f64.eq Wasm operation.

Execute i32.ne Wasm operation.

Execute i64.ne Wasm operation.

Execute f32.ne Wasm operation.

Execute f64.ne Wasm operation.

Execute i32.lt_s Wasm operation.

Execute i64.lt_s Wasm operation.

Execute i32.lt_u Wasm operation.

Execute i64.lt_u Wasm operation.

Execute f32.lt Wasm operation.

Execute f64.lt Wasm operation.

Execute i32.le_s Wasm operation.

Execute i64.le_s Wasm operation.

Execute i32.le_u Wasm operation.

Execute i64.le_u Wasm operation.

Execute f32.le Wasm operation.

Execute f64.le Wasm operation.

Execute i32.gt_s Wasm operation.

Execute i64.gt_s Wasm operation.

Execute i32.gt_u Wasm operation.

Execute i64.gt_u Wasm operation.

Execute f32.gt Wasm operation.

Execute f64.gt Wasm operation.

Execute i32.ge_s Wasm operation.

Execute i64.ge_s Wasm operation.

Execute i32.ge_u Wasm operation.

Execute i64.ge_u Wasm operation.

Execute f32.ge Wasm operation.

Execute f64.ge Wasm operation.

Execute f32.abs Wasm operation.

Execute f32.neg Wasm operation.

Execute f32.ceil Wasm operation.

Execute f32.floor Wasm operation.

Execute f32.trunc Wasm operation.

Execute f32.nearest Wasm operation.

Execute f32.sqrt Wasm operation.

Execute f32.min Wasm operation.

Execute f32.max Wasm operation.

Execute f32.copysign Wasm operation.

Execute f64.abs Wasm operation.

Execute f64.neg Wasm operation.

Execute f64.ceil Wasm operation.

Execute f64.floor Wasm operation.

Execute f64.trunc Wasm operation.

Execute f64.nearest Wasm operation.

Execute f64.sqrt Wasm operation.

Execute f32.add Wasm operation.

Execute f64.add Wasm operation.

Execute f32.sub Wasm operation.

Execute f64.sub Wasm operation.

Execute f32.mul Wasm operation.

Execute f64.mul Wasm operation.

Execute f32.div Wasm operation.

Execute f64.div Wasm operation.

Execute f64.min Wasm operation.

Execute f64.max Wasm operation.

Execute f64.copysign Wasm operation.

Execute i32.wrap_i64 Wasm operation.

Execute i32.trunc_f32_s Wasm operation.

Execute i32.trunc_f32_u Wasm operation.

Execute i32.trunc_f64_s Wasm operation.

Execute i32.trunc_f64_u Wasm operation.

Execute i64.extend_i32_s Wasm operation.

Execute i64.extend_i32_u Wasm operation.

Execute i64.trunc_f32_s Wasm operation.

Execute i64.trunc_f32_u Wasm operation.

Execute i64.trunc_f64_s Wasm operation.

Execute i64.trunc_f64_u Wasm operation.

Execute f32.convert_i32_s Wasm operation.

Execute f32.convert_i32_u Wasm operation.

Execute f32.convert_i64_s Wasm operation.

Execute f32.convert_i64_u Wasm operation.

Execute f32.demote_f64 Wasm operation.

Execute f64.convert_i32_s Wasm operation.

Execute f64.convert_i32_u Wasm operation.

Execute f64.convert_i64_s Wasm operation.

Execute f64.convert_i64_u Wasm operation.

Execute f64.promote_f32 Wasm operation.

Execute i32.extend8_s Wasm operation.

Execute i32.extend16_s Wasm operation.

Execute i64.extend8_s Wasm operation.

Execute i64.extend16_s Wasm operation.

Execute i64.extend32_s Wasm operation.

Execute i32.trunc_sat_f32_s Wasm operation.

Execute i32.trunc_sat_f32_u Wasm operation.

Execute i32.trunc_sat_f64_s Wasm operation.

Execute i32.trunc_sat_f64_u Wasm operation.

Execute i64.trunc_sat_f32_s Wasm operation.

Execute i64.trunc_sat_f32_u Wasm operation.

Execute i64.trunc_sat_f64_s Wasm operation.

Execute i64.trunc_sat_f64_u Wasm operation.

Decodes the slice of UntypedValue as a value of type T.

Note

T can either be a single type or a tuple of types depending on the length of the slice.

Errors

If the tuple length of T and the length of slice does not match.

Encodes the slice of UntypedValue from the given value of type T.

Note

T can either be a single type or a tuple of types depending on the length of the slice.

Errors

If the tuple length of T and the length of slice does not match.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
This method returns an Ordering between self and other. Read more
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
Restrict a value to a certain interval. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more
Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more
Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more
Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more
Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.