pub struct LayerDefinitionBuilder { /* private fields */ }Expand description
Immutable stage defining which files belong to one named layer.
Implementations§
Source§impl LayerDefinitionBuilder
impl LayerDefinitionBuilder
Sourcepub fn defined_by(self, pattern: impl Into<PatternSpec>) -> LayeredArchitecture
pub fn defined_by(self, pattern: impl Into<PatternSpec>) -> LayeredArchitecture
Assigns files whose complete normalized path matches pattern to this layer.
Sourcepub fn defined_by_folder(
self,
pattern: impl Into<PatternSpec>,
) -> LayeredArchitecture
pub fn defined_by_folder( self, pattern: impl Into<PatternSpec>, ) -> LayeredArchitecture
Assigns files whose containing directory matches pattern to this layer.
Sourcepub const fn architecture(&self) -> &LayeredArchitecture
pub const fn architecture(&self) -> &LayeredArchitecture
Returns the architecture accumulated before this definition stage.
Sourcepub fn layer_name(&self) -> &str
pub fn layer_name(&self) -> &str
Returns the name of the layer being defined.
Trait Implementations§
Source§impl Clone for LayerDefinitionBuilder
impl Clone for LayerDefinitionBuilder
Source§fn clone(&self) -> LayerDefinitionBuilder
fn clone(&self) -> LayerDefinitionBuilder
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 LayerDefinitionBuilder
impl RefUnwindSafe for LayerDefinitionBuilder
impl Send for LayerDefinitionBuilder
impl Sync for LayerDefinitionBuilder
impl Unpin for LayerDefinitionBuilder
impl UnwindSafe for LayerDefinitionBuilder
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