Enum cranelift_wasm::wasmparser::InterfaceType
source · pub enum InterfaceType<'a> {
Primitive(PrimitiveInterfaceType),
Record(Box<[(&'a str, InterfaceTypeRef)], Global>),
Variant(Box<[VariantCase<'a>], Global>),
List(InterfaceTypeRef),
Tuple(Box<[InterfaceTypeRef], Global>),
Flags(Box<[&'a str], Global>),
Enum(Box<[&'a str], Global>),
Union(Box<[InterfaceTypeRef], Global>),
Option(InterfaceTypeRef),
Expected {
ok: InterfaceTypeRef,
error: InterfaceTypeRef,
},
}
Expand description
Represents an interface type.
Variants§
Primitive(PrimitiveInterfaceType)
The interface type is one of the primitive types.
Record(Box<[(&'a str, InterfaceTypeRef)], Global>)
The type is a record with the given fields.
Variant(Box<[VariantCase<'a>], Global>)
The type is a variant with the given cases.
List(InterfaceTypeRef)
The type is a list of the given interface type.
Tuple(Box<[InterfaceTypeRef], Global>)
The type is a tuple of the given interface types.
Flags(Box<[&'a str], Global>)
The type is flags with the given names.
Enum(Box<[&'a str], Global>)
The type is an enum with the given tags.
Union(Box<[InterfaceTypeRef], Global>)
The type is a union of the given interface types.
Option(InterfaceTypeRef)
The type is an option of the given interface type.
Expected
Fields
§
ok: InterfaceTypeRef
The type returned for success.
§
error: InterfaceTypeRef
The type returned for failure.
The type is an expected type.
Trait Implementations§
source§impl<'a> Clone for InterfaceType<'a>
impl<'a> Clone for InterfaceType<'a>
source§fn clone(&self) -> InterfaceType<'a>
fn clone(&self) -> InterfaceType<'a>
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 moresource§impl<'a> Debug for InterfaceType<'a>
impl<'a> Debug for InterfaceType<'a>
source§impl<'a> PartialEq<InterfaceType<'a>> for InterfaceType<'a>
impl<'a> PartialEq<InterfaceType<'a>> for InterfaceType<'a>
source§fn eq(&self, other: &InterfaceType<'a>) -> bool
fn eq(&self, other: &InterfaceType<'a>) -> bool
impl<'a> Eq for InterfaceType<'a>
impl<'a> StructuralEq for InterfaceType<'a>
impl<'a> StructuralPartialEq for InterfaceType<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for InterfaceType<'a>
impl<'a> Send for InterfaceType<'a>
impl<'a> Sync for InterfaceType<'a>
impl<'a> Unpin for InterfaceType<'a>
impl<'a> UnwindSafe for InterfaceType<'a>
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.