Improved docs a bit further

This commit is contained in:
Syrus
2020-07-15 18:12:18 -07:00
parent 0c13173624
commit 9a80977743
5 changed files with 17 additions and 15 deletions

View File

@@ -15,19 +15,19 @@ use crate::store::{Store, StoreObject};
use crate::ExternType;
use wasmer_vm::Export;
/// An external value is the runtime representation of an entity that
/// An `Extern` is the runtime representation of an entity that
/// can be imported or exported.
///
/// Spec: https://webassembly.github.io/spec/core/exec/runtime.html#external-values
#[derive(Clone)]
pub enum Extern {
/// A external [`Function`]
/// A external [`Function`].
Function(Function),
/// A external [`Global`]
/// A external [`Global`].
Global(Global),
/// A external [`Table`]
/// A external [`Table`].
Table(Table),
/// A external [`Memory`]
/// A external [`Memory`].
Memory(Memory),
}