Module wasmtime_environ::prelude
source · Expand description
Rust module prelude for Wasmtime crates.
Wasmtime crates that use no_std
use core::prelude::*
by default which
does not include alloc
-related functionality such as String
and Vec
.
To have similar ergonomics to std
and additionally group up some common
functionality this module is intended to be imported at the top of all
modules with:
ⓘ
use crate::*;
Externally for crates that depend on wasmtime-environ
they should have
this in the root of the crate:
ⓘ
use wasmtime_environ::prelude;
and then use crate::*
works as usual.
Re-exports§
pub use crate::Err2Anyhow;
pub use crate::IntoAnyhow;
Modules§
- A contiguous growable array type with heap-allocated contents, written
Vec<T>
.
Macros§
- Creates a
String
using interpolation of runtime expressions. - Creates a
Vec
containing the arguments.
Structs§
- A pointer type that uniquely owns a heap allocation of type
T
. - A UTF-8–encoded, growable string.
- A contiguous growable array type, written as
Vec<T>
, short for ‘vector’.
Traits§
- A generalization of
Clone
to borrowed data. - A trait for converting a value to a
String
.
Type Aliases§
- Wasmparser-specific type alias for an ordered map.
- Wasmparser-specific type alias for an ordered set.