pub enum Replacement {
ZeroFill,
Pattern(Vec<u8>),
Drop,
}Expand description
Strategy for redacting a Hit.
Variants§
ZeroFill
Replace the matched bytes with NUL of equal length. Structure-preserving.
Pattern(Vec<u8>)
Replace with a repeating byte pattern of equal length.
Drop
Drop the matched region entirely. Only valid for formats that can absorb length changes (most binary formats cannot).
Trait Implementations§
Source§impl Clone for Replacement
impl Clone for Replacement
Source§fn clone(&self) -> Replacement
fn clone(&self) -> Replacement
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 moreSource§impl Debug for Replacement
impl Debug for Replacement
Source§impl PartialEq for Replacement
impl PartialEq for Replacement
Source§fn eq(&self, other: &Replacement) -> bool
fn eq(&self, other: &Replacement) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for Replacement
impl StructuralPartialEq for Replacement
Auto Trait Implementations§
impl Freeze for Replacement
impl RefUnwindSafe for Replacement
impl Send for Replacement
impl Sync for Replacement
impl Unpin for Replacement
impl UnsafeUnpin for Replacement
impl UnwindSafe for Replacement
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