pub enum InterfaceType {
Show 26 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),
    Future(TypeFutureTableIndex),
    Stream(TypeStreamTableIndex),
    ErrorContext(TypeComponentLocalErrorContextTableIndex),
}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)
Future(TypeFutureTableIndex)
Stream(TypeStreamTableIndex)
ErrorContext(TypeComponentLocalErrorContextTableIndex)
Trait Implementations§
Source§impl Clone for InterfaceType
 
impl Clone for InterfaceType
Source§fn clone(&self) -> InterfaceType
 
fn clone(&self) -> InterfaceType
Returns a duplicate 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 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.