pub struct ModuleBoundaryConfig { /* private fields */ }Expand description
Deserialized [gate.module-boundary] section of .pedant.toml.
Holds the resource ceilings the graph and analysis owners apply and the local thresholds the four module-boundary rules compare against. Every field is private and read through a by-value accessor, so a threshold cannot be mutated after the configuration is loaded.
Implementations§
Source§impl ModuleBoundaryConfig
impl ModuleBoundaryConfig
Sourcepub fn max_references(&self) -> u32
pub fn max_references(&self) -> u32
Reference ceiling applied by graph construction.
Sourcepub fn max_selected_edges(&self) -> u32
pub fn max_selected_edges(&self) -> u32
Selected-edge ceiling applied by graph analysis.
Sourcepub fn max_scc_members(&self) -> u32
pub fn max_scc_members(&self) -> u32
Largest cyclic component that does not trigger large-scc.
Sourcepub fn misplaced_symbol_min_foreign_edges(&self) -> u32
pub fn misplaced_symbol_min_foreign_edges(&self) -> u32
Foreign edges a symbol needs before misplaced-symbol can trigger.
Sourcepub fn misplaced_symbol_min_affinity_percent(&self) -> u8
pub fn misplaced_symbol_min_affinity_percent(&self) -> u8
Foreign-edge share, in percent, at which misplaced-symbol triggers.
Sourcepub fn low_module_cohesion_min_outgoing_edges(&self) -> u32
pub fn low_module_cohesion_min_outgoing_edges(&self) -> u32
Selected outgoing edges a module needs before cohesion is judged.
Sourcepub fn low_module_cohesion_min_percent(&self) -> u8
pub fn low_module_cohesion_min_percent(&self) -> u8
Internal-edge share, in percent, below which cohesion is too low.
Trait Implementations§
Source§impl Debug for ModuleBoundaryConfig
impl Debug for ModuleBoundaryConfig
Source§impl Default for ModuleBoundaryConfig
impl Default for ModuleBoundaryConfig
Source§impl<'de> Deserialize<'de> for ModuleBoundaryConfig
impl<'de> Deserialize<'de> for ModuleBoundaryConfig
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ModuleBoundaryConfig
impl RefUnwindSafe for ModuleBoundaryConfig
impl Send for ModuleBoundaryConfig
impl Sync for ModuleBoundaryConfig
impl Unpin for ModuleBoundaryConfig
impl UnsafeUnpin for ModuleBoundaryConfig
impl UnwindSafe for ModuleBoundaryConfig
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
Source§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more