Struct ketos::module::ModuleBuilder [] [src]

#[must_use]
pub struct ModuleBuilder { /* fields omitted */ }

Helper to build modules in Rust code.

Methods

impl ModuleBuilder
[src]

Creates a new ModuleBuilder for the given scope.

Adds a constant value to the module.

Adds a documentation string for the given name.

Adds a function to the module.

Adds a value to the module.

Adds a value to the module using the generated name value.

Consumes the builder and returns the new Module.