Type Definition synfuzz::Rules

source ·
pub type Rules = HashMap<String, Box<dyn Generator>>;
Expand description

Rules stores a map of rule name to the tree of Generators. For multithreaded applications this should be wrapped in an Arc<Mutex> to provide safe access. Realistically, as long as all rules are added before generation begins, locking should be unecessary