pub enum FillPattern {
Zeros,
Ones,
Uniform(u8),
Alternating(u8, u8),
HighEntropy,
Mixed,
}Expand description
The dominant fill pattern of a byte region.
Variants§
Zeros
Entirely 0x00 — ordinary unallocated space (not a deliberate-wipe signal).
Ones
Entirely 0xFF.
Uniform(u8)
Entirely one repeated byte value (other than 0x00 / 0xFF).
Alternating(u8, u8)
A repeating two-byte alternation a, b, a, b, … with a != b.
HighEntropy
Near-maximal Shannon entropy — pseudo-random or encrypted fill.
Mixed
No dominant pattern — ordinary structured data.
Implementations§
Source§impl FillPattern
impl FillPattern
Sourcepub fn is_deliberate_wipe(self) -> bool
pub fn is_deliberate_wipe(self) -> bool
true when this pattern is the signature of a deliberate overwrite.
All-zero space is excluded: it is the default state of unallocated sectors and carries no destruction signal on its own.
Trait Implementations§
Source§impl Clone for FillPattern
impl Clone for FillPattern
Source§fn clone(&self) -> FillPattern
fn clone(&self) -> FillPattern
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 moreimpl Copy for FillPattern
Source§impl Debug for FillPattern
impl Debug for FillPattern
impl Eq for FillPattern
Source§impl PartialEq for FillPattern
impl PartialEq for FillPattern
Source§fn eq(&self, other: &FillPattern) -> bool
fn eq(&self, other: &FillPattern) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FillPattern
Auto Trait Implementations§
impl Freeze for FillPattern
impl RefUnwindSafe for FillPattern
impl Send for FillPattern
impl Sync for FillPattern
impl Unpin for FillPattern
impl UnsafeUnpin for FillPattern
impl UnwindSafe for FillPattern
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