pub struct EffectAnalyzer;Expand description
Inspects file paths for sensitivity and categorises blast radius.
Implementations§
Source§impl EffectAnalyzer
impl EffectAnalyzer
Sourcepub fn analyze(
created: &[PathBuf],
modified: &[PathBuf],
deleted: &[PathBuf],
) -> EffectReport
pub fn analyze( created: &[PathBuf], modified: &[PathBuf], deleted: &[PathBuf], ) -> EffectReport
Analyse created / modified / deleted paths and produce an effect report.
created, modified, and deleted are separate sets so the report
can differentiate creation vs. modification when needed.
Sourcepub fn check_sensitivity(path: &Path) -> Option<String>
pub fn check_sensitivity(path: &Path) -> Option<String>
Check a single path against known sensitivity patterns.
Returns a human-readable label when the path matches a sensitivity
pattern, or None if the path is unremarkable.
Trait Implementations§
Source§impl Clone for EffectAnalyzer
impl Clone for EffectAnalyzer
Auto Trait Implementations§
impl Freeze for EffectAnalyzer
impl RefUnwindSafe for EffectAnalyzer
impl Send for EffectAnalyzer
impl Sync for EffectAnalyzer
impl Unpin for EffectAnalyzer
impl UnsafeUnpin for EffectAnalyzer
impl UnwindSafe for EffectAnalyzer
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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