pub enum Type {
Function {
inputs: Vec<InterfaceType>,
outputs: Vec<InterfaceType>,
},
Record(RecordType),
}Expand description
Represents a type.
Variants§
Function
A function type, like:
(@interface type (func (param i32 i32) (result string)))Fields
§
inputs: Vec<InterfaceType>Types for the parameters ((param …)).
§
outputs: Vec<InterfaceType>Types for the results ((result …)).
Record(RecordType)
A record type, like:
(@interface type (record string i32))Trait Implementations§
Source§impl<W> ToBytes<W> for Typewhere
W: Write,
Encode a Type into bytes.
impl<W> ToBytes<W> for Typewhere
W: Write,
Encode a Type into bytes.
Decoder is in decoders::binary::types.
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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