pub struct PatchIntegrityGuard { /* private fields */ }Expand description
Guard that validates the safety of applied patches/diffs.
Implementations§
Source§impl PatchIntegrityGuard
impl PatchIntegrityGuard
pub fn new() -> Self
pub fn with_config( config: PatchIntegrityConfig, ) -> Result<Self, PatchIntegrityConfigError>
Sourcepub fn analyze(&self, diff: &str) -> PatchAnalysis
pub fn analyze(&self, diff: &str) -> PatchAnalysis
Analyze a unified diff and return a PatchAnalysis.
Trait Implementations§
Source§impl Default for PatchIntegrityGuard
impl Default for PatchIntegrityGuard
Auto Trait Implementations§
impl Freeze for PatchIntegrityGuard
impl RefUnwindSafe for PatchIntegrityGuard
impl Send for PatchIntegrityGuard
impl Sync for PatchIntegrityGuard
impl Unpin for PatchIntegrityGuard
impl UnsafeUnpin for PatchIntegrityGuard
impl UnwindSafe for PatchIntegrityGuard
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