Trait soroban_wasmi::core::FromValue
source · [−]pub trait FromValue {
fn from_value(val: Value) -> Option<Self>;
}
Expand description
Required Methods
Implementations on Foreign Types
sourceimpl FromValue for i16
impl FromValue for i16
This conversion assumes that i16
is represented as an I32
.
fn from_value(val: Value) -> Option<i16>
sourceimpl FromValue for u16
impl FromValue for u16
This conversion assumes that u16
is represented as an I32
.
fn from_value(val: Value) -> Option<u16>
sourceimpl FromValue for u8
impl FromValue for u8
This conversion assumes that u8
is represented as an I32
.
fn from_value(val: Value) -> Option<u8>
sourceimpl FromValue for i8
impl FromValue for i8
This conversion assumes that i8
is represented as an I32
.
fn from_value(val: Value) -> Option<i8>
sourceimpl FromValue for bool
impl FromValue for bool
This conversion assumes that boolean values are represented by
I32
type.