archunit

Trait Checkable

Source
pub trait Checkable {
    // Required method
    fn check_with(&self, options: &CheckOptions) -> CheckResult;

    // Provided method
    fn check(&self) -> CheckResult { ... }
}
Expand description

A terminal architecture rule that can judge a project.

Building a fluent rule is lazy; only these methods may touch the filesystem. Test helpers and report consumers depend on this trait rather than on individual rule families.

Required Methods§

Source

fn check_with(&self, options: &CheckOptions) -> CheckResult

Runs the rule with an explicit immutable options bag.

Provided Methods§

Source

fn check(&self) -> CheckResult

Runs the rule with the strict, quiet defaults from CheckOptions.

Implementations on Foreign Types§

Source§

impl<T> Checkable for &T
where T: Checkable + ?Sized,

Implementors§