feat(interface-types) Rename call to call-core, and remove call-export.

This commit is contained in:
Ivan Enderlin
2020-03-09 14:33:17 +01:00
parent f38c45e373
commit f342670532
10 changed files with 52 additions and 288 deletions

View File

@ -51,12 +51,16 @@ pub enum InterfaceType {
}
/// Represents a type signature.
///
/// ```wasm,ignore
/// (@interface type (param i32 i32) (result string))
/// ```
#[derive(PartialEq, Debug)]
pub struct Type {
/// Types for the parameters.
/// Types for the parameters (`(param …)`).
pub inputs: Vec<InterfaceType>,
/// Types for the results.
/// Types for the results (`(result …)`).
pub outputs: Vec<InterfaceType>,
}