#[non_exhaustive]pub struct MetricZoneViolation {
pub distance_info: DistanceInfo,
pub zone: ArchitecturalZone,
pub abstractness: f64,
pub instability: f64,
}Expand description
A file component whose abstractness/instability point lies in a discouraged zone.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.distance_info: DistanceInfoThe complete file syntax and coupling evidence.
zone: ArchitecturalZoneThe zone that rejected the component.
abstractness: f64Abstractness at the time the violation was gathered.
instability: f64Instability at the time the violation was gathered.
Implementations§
Source§impl MetricZoneViolation
impl MetricZoneViolation
Sourcepub fn new(distance_info: DistanceInfo, zone: ArchitecturalZone) -> Self
pub fn new(distance_info: DistanceInfo, zone: ArchitecturalZone) -> Self
Creates violation data and derives its coordinates from the supplied evidence.
Trait Implementations§
Source§impl Clone for MetricZoneViolation
impl Clone for MetricZoneViolation
Source§fn clone(&self) -> MetricZoneViolation
fn clone(&self) -> MetricZoneViolation
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 moreSource§impl Debug for MetricZoneViolation
impl Debug for MetricZoneViolation
Source§impl From<MetricZoneViolation> for Violation
impl From<MetricZoneViolation> for Violation
Source§fn from(violation: MetricZoneViolation) -> Self
fn from(violation: MetricZoneViolation) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MetricZoneViolation
impl PartialEq for MetricZoneViolation
impl StructuralPartialEq for MetricZoneViolation
Auto Trait Implementations§
impl Freeze for MetricZoneViolation
impl RefUnwindSafe for MetricZoneViolation
impl Send for MetricZoneViolation
impl Sync for MetricZoneViolation
impl Unpin for MetricZoneViolation
impl UnwindSafe for MetricZoneViolation
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