Enum WasmValueType
#[repr(u8)]pub enum WasmValueType {
I32 = 0,
I64 = 1,
F32 = 2,
F64 = 3,
V128 = 4,
}
Expand description
The type of a WASM value represented at runtime for use with the wasix closures API.
For now only number types are supported, but this may be extended in the future to include references
Variants§
I32 = 0
A i32 parameter.
I64 = 1
A i64 parameter.
F32 = 2
A f32 parameter.
F64 = 3
A f64 parameter.
V128 = 4
A v128 parameter.
Trait Implementations§
§impl Clone for WasmValueType
impl Clone for WasmValueType
§fn clone(&self) -> WasmValueType
fn clone(&self) -> WasmValueType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for WasmValueType
impl Debug for WasmValueType
§impl Hash for WasmValueType
impl Hash for WasmValueType
§impl PartialEq for WasmValueType
impl PartialEq for WasmValueType
§impl TryFrom<u8> for WasmValueType
impl TryFrom<u8> for WasmValueType
§type Error = TryFromPrimitiveError<WasmValueType>
type Error = TryFromPrimitiveError<WasmValueType>
The type returned in the event of a conversion error.
§fn try_from(
number: u8,
) -> Result<WasmValueType, TryFromPrimitiveError<WasmValueType>>
fn try_from( number: u8, ) -> Result<WasmValueType, TryFromPrimitiveError<WasmValueType>>
Performs the conversion.
§impl TryFromPrimitive for WasmValueType
impl TryFromPrimitive for WasmValueType
const NAME: &'static str = "WasmValueType"
type Primitive = u8
type Error = TryFromPrimitiveError<WasmValueType>
fn try_from_primitive( number: <WasmValueType as TryFromPrimitive>::Primitive, ) -> Result<WasmValueType, TryFromPrimitiveError<WasmValueType>>
impl Copy for WasmValueType
impl Eq for WasmValueType
impl StructuralPartialEq for WasmValueType
Auto Trait Implementations§
impl Freeze for WasmValueType
impl RefUnwindSafe for WasmValueType
impl Send for WasmValueType
impl Sync for WasmValueType
impl Unpin for WasmValueType
impl UnwindSafe for WasmValueType
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2where
T: SharedNiching<N1, N2>,
N1: Niching<T>,
N2: Niching<T>,
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2where
T: SharedNiching<N1, N2>,
N1: Niching<T>,
N2: Niching<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Pointee for T
impl<T> Pointee for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> Upcastable for T
impl<T> Upcastable for T
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
§impl<T> Upcastable for T
impl<T> Upcastable for T
§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref
§fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
upcast boxed dyn