mirror of
https://github.com/fluencelabs/wasmer
synced 2025-03-31 15:01:03 +00:00
doc(interface-types) Improve documentation of the ast
module.
This commit is contained in:
parent
d667cb8e2f
commit
2fc1fbb7ec
@ -80,11 +80,16 @@ pub struct Import<'input> {
|
|||||||
pub output_types: Vec<InterfaceType>,
|
pub output_types: Vec<InterfaceType>,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Represents a type.
|
/// Represents a structural type.
|
||||||
#[derive(PartialEq, Debug)]
|
#[derive(PartialEq, Debug)]
|
||||||
pub struct Type<'input> {
|
pub struct Type<'input> {
|
||||||
|
/// The type name.
|
||||||
pub name: &'input str,
|
pub name: &'input str,
|
||||||
|
|
||||||
|
/// The field names.
|
||||||
pub fields: Vec<&'input str>,
|
pub fields: Vec<&'input str>,
|
||||||
|
|
||||||
|
/// The field types.
|
||||||
pub types: Vec<InterfaceType>,
|
pub types: Vec<InterfaceType>,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -151,7 +156,7 @@ pub struct Forward<'input> {
|
|||||||
/// definition.
|
/// definition.
|
||||||
#[derive(PartialEq, Debug)]
|
#[derive(PartialEq, Debug)]
|
||||||
pub struct Interfaces<'input> {
|
pub struct Interfaces<'input> {
|
||||||
/// All the exports.
|
/// All the exported functions.
|
||||||
pub exports: Vec<Export<'input>>,
|
pub exports: Vec<Export<'input>>,
|
||||||
|
|
||||||
/// All the types.
|
/// All the types.
|
||||||
@ -160,7 +165,7 @@ pub struct Interfaces<'input> {
|
|||||||
/// All the imported functions.
|
/// All the imported functions.
|
||||||
pub imports: Vec<Import<'input>>,
|
pub imports: Vec<Import<'input>>,
|
||||||
|
|
||||||
/// All the exported functions.
|
/// All the adapters.
|
||||||
pub adapters: Vec<Adapter<'input>>,
|
pub adapters: Vec<Adapter<'input>>,
|
||||||
|
|
||||||
/// All the forwarded functions.
|
/// All the forwarded functions.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user