Enum wasmtime_environ::component::InterfaceType
source · pub enum InterfaceType {
Show 23 variants
Bool,
S8,
U8,
S16,
U16,
S32,
U32,
S64,
U64,
Float32,
Float64,
Char,
String,
Record(TypeRecordIndex),
Variant(TypeVariantIndex),
List(TypeListIndex),
Tuple(TypeTupleIndex),
Flags(TypeFlagsIndex),
Enum(TypeEnumIndex),
Option(TypeOptionIndex),
Result(TypeResultIndex),
Own(TypeResourceTableIndex),
Borrow(TypeResourceTableIndex),
}
Expand description
All possible interface types that values can have.
This list represents an exhaustive listing of interface types and the
shapes that they can take. Note that this enum is considered an “index” of
forms where for non-primitive types a ComponentTypes
structure is used to
lookup further information based on the index found here.
Variants§
Bool
S8
U8
S16
U16
S32
U32
S64
U64
Float32
Float64
Char
String
Record(TypeRecordIndex)
Variant(TypeVariantIndex)
List(TypeListIndex)
Tuple(TypeTupleIndex)
Flags(TypeFlagsIndex)
Enum(TypeEnumIndex)
Option(TypeOptionIndex)
Result(TypeResultIndex)
Own(TypeResourceTableIndex)
Borrow(TypeResourceTableIndex)
Trait Implementations§
source§impl Clone for InterfaceType
impl Clone for InterfaceType
source§fn clone(&self) -> InterfaceType
fn clone(&self) -> InterfaceType
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 Debug for InterfaceType
impl Debug for InterfaceType
source§impl<'de> Deserialize<'de> for InterfaceType
impl<'de> Deserialize<'de> for InterfaceType
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<&PrimitiveValType> for InterfaceType
impl From<&PrimitiveValType> for InterfaceType
source§fn from(ty: &PrimitiveValType) -> InterfaceType
fn from(ty: &PrimitiveValType) -> InterfaceType
Converts to this type from the input type.
source§impl Hash for InterfaceType
impl Hash for InterfaceType
source§impl PartialEq for InterfaceType
impl PartialEq for InterfaceType
source§impl Serialize for InterfaceType
impl Serialize for InterfaceType
impl Copy for InterfaceType
impl Eq for InterfaceType
impl StructuralPartialEq for InterfaceType
Auto Trait Implementations§
impl Freeze for InterfaceType
impl RefUnwindSafe for InterfaceType
impl Send for InterfaceType
impl Sync for InterfaceType
impl Unpin for InterfaceType
impl UnwindSafe for InterfaceType
Blanket Implementations§
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.