Struct wasmer_c_api::wasm_c_api::value::wasm_val_vec_t [−][src]
#[repr(C)]pub struct wasm_val_vec_t { pub size: usize, pub data: *mut wasm_val_t, }
Expand description
Represents a vector of wasm_val_t.
Read the documentation of wasm_val_t to see more concrete examples.
Example
int main() { // Create a vector of 2 `wasm_val_t`. wasm_val_t x; wasm_val_t y; wasm_val_t* items[2] = {&x, &y}; wasm_val_vec_t vector; wasm_val_vec_new(&vector, 2, (wasm_val_t*) items); // Check that it contains 2 items. assert(vector.size == 2); // Free it. wasm_val_vec_delete(&vector); }
Fields
size: usizedata: *mut wasm_val_tImplementations
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for wasm_val_vec_timpl !Send for wasm_val_vec_timpl !Sync for wasm_val_vec_timpl Unpin for wasm_val_vec_timpl UnwindSafe for wasm_val_vec_tBlanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::MetadataConverts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
pub fn vzip(self) -> V