Skip to main content

Boundaries

Struct Boundaries 

Source
pub struct Boundaries { /* private fields */ }

Implementations§

Source§

impl Boundaries

Source

pub fn applies_to_source_set(&self, source_set: SourceSet) -> bool

Source

pub fn strict_zones(&self) -> bool

Source

pub fn zone_names(&self) -> Vec<&str>

Source

pub fn public_file_patterns(&self, zone: &str) -> &[String]

Source

pub fn allow_reason(&self, source_zone: &str, target_zone: &str) -> Option<&str>

Source

pub fn zone_of(&self, path: &RepoPath) -> Option<&str>

Source

pub fn has_public_files(&self, zone: &str) -> bool

Source

pub fn is_public_file(&self, zone: &str, path: &RepoPath) -> bool

Source

pub fn has_external_rules(&self) -> bool

Source

pub fn external_policy_for( &self, source_zone: &str, ) -> Option<BoundaryExternalPolicy>

Source

pub fn check_external_import( &self, source_zone: &str, package: &str, ) -> BoundaryRuleDecision

Source

pub fn check_import( &self, source_zone: &str, target_zone: &str, ) -> BoundaryRuleDecision

Trait Implementations§

Source§

impl Clone for Boundaries

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Boundaries

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Forget for Boundaries

§

impl Freeze for Boundaries
where *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 Boundaries

§

impl Send for Boundaries
where 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 Boundaries
where 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 Boundaries
where *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 Boundaries
where *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 Boundaries
where 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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Resource for T
where T: 'static,

Source§

type Rep = Option<T>

The type which is actually stored in-memory for this resource. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.