Enum wasmtime_environ::wasmparser::types::InterfaceType
source · [−]pub enum InterfaceType {
Primitive(PrimitiveInterfaceType),
Record(IndexMap<String, InterfaceTypeRef, RandomState>),
Variant(IndexMap<String, VariantCase, RandomState>),
List(InterfaceTypeRef),
Tuple(Box<[InterfaceTypeRef], Global>),
Flags(IndexSet<String, RandomState>),
Enum(IndexSet<String, RandomState>),
Union(Box<[InterfaceTypeRef], Global>),
Option(InterfaceTypeRef),
Expected(InterfaceTypeRef, InterfaceTypeRef),
}
Expand description
Represents an interface type.
Variants
Primitive(PrimitiveInterfaceType)
The type is a primitive interface type.
Record(IndexMap<String, InterfaceTypeRef, RandomState>)
The type is a record.
Variant(IndexMap<String, VariantCase, RandomState>)
The type is a variant.
List(InterfaceTypeRef)
The type is a list.
Tuple(Box<[InterfaceTypeRef], Global>)
The type is a tuple.
Flags(IndexSet<String, RandomState>)
The type is a set of flags.
Enum(IndexSet<String, RandomState>)
The type is an enumeration.
Union(Box<[InterfaceTypeRef], Global>)
The type is a union.
Option(InterfaceTypeRef)
The type is an option
.
Expected(InterfaceTypeRef, InterfaceTypeRef)
The type is an expected
.
Trait Implementations
sourceimpl Clone for InterfaceType
impl Clone for InterfaceType
sourcefn clone(&self) -> InterfaceType
fn clone(&self) -> InterfaceType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for InterfaceType
impl Send for InterfaceType
impl Sync for InterfaceType
impl Unpin for InterfaceType
impl UnwindSafe for InterfaceType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more