pub struct ResolvedBoundaryConfig {
pub zones: Vec<ResolvedZone>,
pub rules: Vec<ResolvedBoundaryRule>,
pub logical_groups: Vec<LogicalGroup>,
pub coverage: ResolvedBoundaryCoverageConfig,
pub calls_forbidden_by_zone: FxHashMap<String, Vec<String>>,
}Expand description
Resolved boundary config with pre-compiled glob matchers.
Fields§
§zones: Vec<ResolvedZone>Compiled zones.
rules: Vec<ResolvedBoundaryRule>Compiled rules.
logical_groups: Vec<LogicalGroup>Captured logical groups.
coverage: ResolvedBoundaryCoverageConfigResolved coverage policy.
calls_forbidden_by_zone: FxHashMap<String, Vec<String>>Forbidden callee patterns grouped by from zone, in config order.
Patterns stay raw strings; the analysis layer parses them into its
segment-aware matcher.
Implementations§
Source§impl ResolvedBoundaryConfig
impl ResolvedBoundaryConfig
Sourcepub fn classify_zone(&self, relative_path: &str) -> Option<&str>
pub fn classify_zone(&self, relative_path: &str) -> Option<&str>
Classify a project-relative path into a zone.
Sourcepub fn allows_unmatched(&self, relative_path: &str) -> bool
pub fn allows_unmatched(&self, relative_path: &str) -> bool
Whether an unmatched file is explicitly allowed by coverage policy.
Sourcepub fn is_import_allowed(&self, from_zone: &str, to_zone: &str) -> bool
pub fn is_import_allowed(&self, from_zone: &str, to_zone: &str) -> bool
Check whether an import is allowed.
Sourcepub fn is_type_only_allowed(&self, from_zone: &str, to_zone: &str) -> bool
pub fn is_type_only_allowed(&self, from_zone: &str, to_zone: &str) -> bool
Check whether a type-only import is allowed.
Trait Implementations§
Source§impl Clone for ResolvedBoundaryConfig
impl Clone for ResolvedBoundaryConfig
Source§impl Debug for ResolvedBoundaryConfig
impl Debug for ResolvedBoundaryConfig
Auto Trait Implementations§
impl Freeze for ResolvedBoundaryConfig
impl RefUnwindSafe for ResolvedBoundaryConfig
impl Send for ResolvedBoundaryConfig
impl Sync for ResolvedBoundaryConfig
impl Unpin for ResolvedBoundaryConfig
impl UnsafeUnpin for ResolvedBoundaryConfig
impl UnwindSafe for ResolvedBoundaryConfig
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