pub struct Boundaries { /* private fields */ }Implementations§
Source§impl Boundaries
impl Boundaries
pub fn applies_to_source_set(&self, source_set: SourceSet) -> bool
pub fn strict_zones(&self) -> bool
pub fn zone_names(&self) -> Vec<&str>
pub fn public_file_patterns(&self, zone: &str) -> &[String]
pub fn allow_reason(&self, source_zone: &str, target_zone: &str) -> Option<&str>
pub fn zone_of(&self, path: &RepoPath) -> Option<&str>
pub fn has_public_files(&self, zone: &str) -> bool
pub fn is_public_file(&self, zone: &str, path: &RepoPath) -> bool
pub fn has_external_rules(&self) -> bool
pub fn external_policy_for( &self, source_zone: &str, ) -> Option<BoundaryExternalPolicy>
pub fn check_external_import( &self, source_zone: &str, package: &str, ) -> BoundaryRuleDecision
pub fn check_import( &self, source_zone: &str, target_zone: &str, ) -> BoundaryRuleDecision
Trait Implementations§
Source§impl Clone for Boundaries
impl Clone for Boundaries
Auto Trait Implementations§
impl Forget for Boundaries
impl Freeze for Boundarieswhere
*const LeafNode<String, BoundaryZoneFile> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, BoundaryZoneFile)>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<BoundaryRuleFile>: Freeze,
*const LeafNode<String, CompiledZone> is !null: Freeze,
PhantomData<Box<(String, CompiledZone)>>: Freeze,
PhantomData<GlobSetMatchStrategy>: Freeze,
PhantomData<CompiledZonePattern>: Freeze,
PhantomData<(String, Vec<CompiledRule>)>: Freeze,
PhantomData<CompiledRule>: Freeze,
PhantomData<(String, Vec<CompiledExternalRule>)>: Freeze,
PhantomData<CompiledExternalRule>: Freeze,
PhantomData<SourceSet>: Freeze,
impl Move for Boundaries
impl RefUnwindSafe for Boundarieswhere
Atomic<usize>: RefUnwindSafe,
Pool<Cache, Box<dyn Fn() -> Cache + Sync + RefUnwindSafe + UnwindSafe + Send>>: RefUnwindSafe,
Pool<PatternSet, Box<dyn Fn() -> PatternSet + Sync + RefUnwindSafe + UnwindSafe + Send>>: RefUnwindSafe,
impl Send for Boundarieswhere
NodeRef<Owned, String, BoundaryZoneFile, LeafOrInternal>: Send,
BoxRaw<(String, BoundaryZoneFile)>: Send,
RawVecInner: Send,
NodeRef<Owned, String, CompiledZone, LeafOrInternal>: Send,
BoxRaw<(String, CompiledZone)>: Send,
RawTable<(Vec<u8>, Vec<usize>)>: Send,
Arc<dyn AcAutomaton>: Send,
RawTable<(Vec<u8>, Vec<(usize, Regex)>)>: Send,
Arc<RegexI>: Send,
BoxRaw<Pool<Cache, Box<dyn Fn() -> Cache + Sync + RefUnwindSafe + UnwindSafe + Send>>>: Send,
Arc<Pool<PatternSet, Box<dyn Fn() -> PatternSet + Sync + RefUnwindSafe + UnwindSafe + Send>>>: Send,
RawTable<(String, Vec<CompiledRule>)>: Send,
RawTable<(String, ())>: Send,
RawTable<(String, Vec<CompiledExternalRule>)>: Send,
impl Sync for Boundarieswhere
NodeRef<Owned, String, BoundaryZoneFile, LeafOrInternal>: Sync,
BoxRaw<(String, BoundaryZoneFile)>: Sync,
RawVecInner: Sync,
NodeRef<Owned, String, CompiledZone, LeafOrInternal>: Sync,
BoxRaw<(String, CompiledZone)>: Sync,
RawTable<(Vec<u8>, Vec<usize>)>: Sync,
Arc<dyn AcAutomaton>: Sync,
RawTable<(Vec<u8>, Vec<(usize, Regex)>)>: Sync,
Arc<RegexI>: Sync,
BoxRaw<Pool<Cache, Box<dyn Fn() -> Cache + Sync + RefUnwindSafe + UnwindSafe + Send>>>: Sync,
Arc<Pool<PatternSet, Box<dyn Fn() -> PatternSet + Sync + RefUnwindSafe + UnwindSafe + Send>>>: Sync,
RawTable<(String, Vec<CompiledRule>)>: Sync,
RawTable<(String, ())>: Sync,
RawTable<(String, Vec<CompiledExternalRule>)>: Sync,
impl Unpin for Boundarieswhere
*const LeafNode<String, BoundaryZoneFile> is !null: Unpin,
Box<(String, BoundaryZoneFile)>: Unpin,
*const u8 is !null: Unpin,
*const LeafNode<String, CompiledZone> is !null: Unpin,
Box<(String, CompiledZone)>: Unpin,
Arc<dyn AcAutomaton>: Unpin,
Arc<RegexI>: Unpin,
Box<Pool<Cache, Box<dyn Fn() -> Cache + Sync + RefUnwindSafe + UnwindSafe + Send>>>: Unpin,
Arc<Pool<PatternSet, Box<dyn Fn() -> PatternSet + Sync + RefUnwindSafe + UnwindSafe + Send>>>: Unpin,
impl UnsafeUnpin for Boundarieswhere
*const LeafNode<String, BoundaryZoneFile> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, BoundaryZoneFile)>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<BoundaryRuleFile>: UnsafeUnpin,
*const LeafNode<String, CompiledZone> is !null: UnsafeUnpin,
PhantomData<Box<(String, CompiledZone)>>: UnsafeUnpin,
PhantomData<GlobSetMatchStrategy>: UnsafeUnpin,
PhantomData<CompiledZonePattern>: UnsafeUnpin,
PhantomData<(String, Vec<CompiledRule>)>: UnsafeUnpin,
PhantomData<CompiledRule>: UnsafeUnpin,
PhantomData<(String, Vec<CompiledExternalRule>)>: UnsafeUnpin,
PhantomData<CompiledExternalRule>: UnsafeUnpin,
PhantomData<SourceSet>: UnsafeUnpin,
impl UnwindSafe for Boundarieswhere
BTreeMap<String, BoundaryZoneFile>: UnwindSafe,
RawVecInner: UnwindSafe,
BTreeMap<String, CompiledZone>: UnwindSafe,
HashMap<Vec<u8>, Vec<usize>, BuildHasherDefault<Hasher>>: UnwindSafe,
Arc<dyn AcAutomaton>: UnwindSafe,
HashMap<Vec<u8>, Vec<(usize, Regex)>, BuildHasherDefault<Hasher>>: UnwindSafe,
Arc<RegexI>: UnwindSafe,
BoxRaw<Pool<Cache, Box<dyn Fn() -> Cache + Sync + RefUnwindSafe + UnwindSafe + Send>>>: UnwindSafe,
Arc<Pool<PatternSet, Box<dyn Fn() -> PatternSet + Sync + RefUnwindSafe + UnwindSafe + Send>>>: UnwindSafe,
HashMap<String, Vec<CompiledRule>>: UnwindSafe,
NonNull<u8>: UnwindSafe,
HashMap<String, Vec<CompiledExternalRule>>: UnwindSafe,
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