pub enum InterfaceType {
Show 15 variants
S8,
S16,
S32,
S64,
U8,
U16,
U32,
U64,
F32,
F64,
String,
Anyref,
I32,
I64,
Record(RecordType),
}Expand description
Represents the types supported by WIT.
Variants§
S8
A 8-bits signed integer.
S16
A 16-bits signed integer.
S32
A 32-bits signed integer.
S64
A 64-bits signed integer.
U8
A 8-bits unsigned integer.
U16
A 16-bits unsigned integer.
U32
A 32-bits unsigned integer.
U64
A 64-bits unsigned integer.
F32
A 32-bits float.
F64
A 64-bits float.
String
A string.
Anyref
An any reference.
I32
A 32-bits integer (as defined in WebAssembly core).
I64
A 64-bits integer (as defiend in WebAssembly core).
Record(RecordType)
A record.
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 From<&InterfaceValue> for InterfaceType
impl From<&InterfaceValue> for InterfaceType
Source§fn from(value: &InterfaceValue) -> Self
fn from(value: &InterfaceValue) -> Self
Converts to this type from the input type.
Source§impl Parse<'_> for InterfaceType
impl Parse<'_> for InterfaceType
Source§impl PartialEq for InterfaceType
impl PartialEq for InterfaceType
Source§impl<W> ToBytes<W> for InterfaceTypewhere
W: Write,
Encode an InterfaceType into bytes.
impl<W> ToBytes<W> for InterfaceTypewhere
W: Write,
Encode an InterfaceType into bytes.
Source§impl ToString for &InterfaceType
Encode an InterfaceType into a string.
impl ToString for &InterfaceType
Encode an InterfaceType into a string.
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