expose builders

This commit is contained in:
NikVolf
2018-01-09 12:23:42 +03:00
parent 185dbd3b1b
commit b26da22e89
2 changed files with 8 additions and 4 deletions

View File

@ -1,11 +1,13 @@
//! invoke helper //! invoke helper
/// Helper trait to allow chaining
pub trait Invoke<A> { pub trait Invoke<A> {
type Result; type Result;
fn invoke(self, arg: A) -> Self::Result; fn invoke(self, arg: A) -> Self::Result;
} }
/// Identity chain element
pub struct Identity; pub struct Identity;
impl<A> Invoke<A> for Identity { impl<A> Invoke<A> for Identity {

View File

@ -11,8 +11,10 @@ mod export;
mod global; mod global;
mod data; mod data;
pub use self::invoke::Identity;
pub use self::module::{module, from_module, ModuleBuilder}; pub use self::module::{module, from_module, ModuleBuilder};
pub use self::code::{signatures, signature, function}; pub use self::code::{signatures, signature, function, SignatureBuilder, FunctionBuilder};
pub use self::import::import; pub use self::memory::MemoryBuilder;
pub use self::export::export; pub use self::import::{import, ImportBuilder};
pub use self::global::global; pub use self::export::{export, ExportBuilder};
pub use self::global::{global, GlobalBuilder};