mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-06-29 06:32:17 +00:00
expose builders
This commit is contained in:
@ -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 {
|
||||||
|
@ -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};
|
||||||
|
Reference in New Issue
Block a user