Union wasmer_c_api::wasm_c_api::value::wasm_val_inner
source · pub union wasm_val_inner {
/* private fields */
}
Expand description
A Rust union, compatible with C, that holds a value of kind
wasm_valkind_t
(see wasm_val_t
to get the complete
picture). Members of the union are:
int32_t
if the value is a 32-bit integer,int64_t
if the value is a 64-bit integer,float32_t
if the value is a 32-bit float,float64_t
if the value is a 64-bit float,wref
(wasm_ref_t
) if the value is a WebAssembly reference.
Trait Implementations§
source§impl Clone for wasm_val_inner
impl Clone for wasm_val_inner
source§fn clone(&self) -> wasm_val_inner
fn clone(&self) -> wasm_val_inner
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 moreimpl Copy for wasm_val_inner
Auto Trait Implementations§
impl RefUnwindSafe for wasm_val_inner
impl !Send for wasm_val_inner
impl !Sync for wasm_val_inner
impl Unpin for wasm_val_inner
impl UnwindSafe for wasm_val_inner
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
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§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>
Gets the layout of the type.