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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.