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
Source§fn clone(&self) -> EffectAnalyzer
fn clone(&self) -> EffectAnalyzer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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