Struct arch_test_core::Architecture [−][src]
pub struct Architecture<'r> { /* fields omitted */ }
Expand description
This is the central object that holds the architecture rules and executes them
Example:
let architecture = Architecture::new(hash_set!["analyzer".to_owned(), "parser".to_owned(), ...]) .with_access_rule(NoParentAccess) .with_access_rule(NoModuleCyclicDependencies) .with_access_rule(NoLayerCyclicDependencies) ... .with_access_rule(MayNotAccess::new( "materials".to_owned(), hash_set!["tests".to_owned()], true, ));
Implementations
pub fn check_complete_layer_specification(
&self,
module_tree: &ModuleTree
) -> Result<(), RuleViolation<'_>>
[src]Trait Implementations
Auto Trait Implementations
impl<'r> !RefUnwindSafe for Architecture<'r>
impl<'r> !Send for Architecture<'r>
impl<'r> !Sync for Architecture<'r>
impl<'r> Unpin for Architecture<'r>
impl<'r> !UnwindSafe for Architecture<'r>