pub struct LayeredArchitecture { /* private fields */ }Expand description
Immutable, executable named-layer dependency policy.
Implementations§
Source§impl LayeredArchitecture
impl LayeredArchitecture
Sourcepub fn layer(self, name: impl Into<String>) -> LayerDefinitionBuilder
pub fn layer(self, name: impl Into<String>) -> LayerDefinitionBuilder
Enters the definition stage for name.
Defining the same name again adds another OR selector without changing declaration order.
Sourcepub fn where_layer(self, name: impl Into<String>) -> LayerDependencyRuleBuilder
pub fn where_layer(self, name: impl Into<String>) -> LayerDependencyRuleBuilder
Enters the dependency-policy stage for a previously defined layer.
Sourcepub const fn project_locator(&self) -> &ProjectLocator
pub const fn project_locator(&self) -> &ProjectLocator
Returns where Cargo project discovery begins.
Sourcepub fn layer_definitions(&self) -> &[LayerDefinition]
pub fn layer_definitions(&self) -> &[LayerDefinition]
Returns named layer definitions in declaration order.
Trait Implementations§
Source§impl Checkable for LayeredArchitecture
impl Checkable for LayeredArchitecture
Source§fn check_with(&self, options: &CheckOptions) -> CheckResult
fn check_with(&self, options: &CheckOptions) -> CheckResult
Runs the rule with an explicit immutable options bag.
Source§fn check(&self) -> CheckResult
fn check(&self) -> CheckResult
Runs the rule with the strict, quiet defaults from
CheckOptions.Source§impl Clone for LayeredArchitecture
impl Clone for LayeredArchitecture
Source§fn clone(&self) -> LayeredArchitecture
fn clone(&self) -> LayeredArchitecture
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LayeredArchitecture
impl RefUnwindSafe for LayeredArchitecture
impl Send for LayeredArchitecture
impl Sync for LayeredArchitecture
impl Unpin for LayeredArchitecture
impl UnwindSafe for LayeredArchitecture
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more