pub struct BoundaryAnchor {
pub zone_pair_key: String,
pub from_file: String,
pub from_zone: String,
pub to_zone: String,
pub line: u32,
}Expand description
A representative boundary violation used to anchor a coupling/boundary
decision to a file + line. Decoupled from the fallow_types finding type so
the extractor unit-tests without constructing full findings.
Fields§
§zone_pair_key: StringThe R2 zone-pair key ("<from_zone>->-<to_zone>"), matching
ReviewDeltas::boundary_introduced.
from_file: StringRoot-relative path of the importing file (the decision anchor).
from_zone: StringThe from_zone of the edge (for the framed question).
to_zone: StringThe to_zone of the edge (for the framed question).
line: u321-based line of the offending import (the suppression anchor).
Trait Implementations§
Source§impl Clone for BoundaryAnchor
impl Clone for BoundaryAnchor
Auto Trait Implementations§
impl Freeze for BoundaryAnchor
impl RefUnwindSafe for BoundaryAnchor
impl Send for BoundaryAnchor
impl Sync for BoundaryAnchor
impl Unpin for BoundaryAnchor
impl UnsafeUnpin for BoundaryAnchor
impl UnwindSafe for BoundaryAnchor
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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