imag/src/module/mod.rs

21 lines
333 B
Rust
Raw Normal View History

2015-12-30 21:46:40 +00:00
use std::fmt::Debug;
2015-10-19 15:54:32 +00:00
2015-12-05 00:23:06 +00:00
use clap::ArgMatches;
use runtime::Runtime;
2015-10-25 18:56:04 +00:00
pub mod bm;
pub mod helpers;
pub mod notes;
2015-10-19 15:54:32 +00:00
2015-12-29 15:55:28 +00:00
/**
* Module interface, each module has to implement this.
*/
2015-12-20 12:26:14 +00:00
pub trait Module<'a> : Debug {
2015-12-20 11:43:57 +00:00
fn exec(&self, matches: &ArgMatches) -> bool;
2015-12-20 12:26:14 +00:00
fn name(&self) -> &'static str;
fn runtime(&self) -> &Runtime;
2015-10-19 15:54:32 +00:00
}