pub enum TestDataPattern {
Zeros,
Ones,
Sequential,
Random,
Compressible,
Text,
}Expand description
Test data patterns for file generation
Variants§
Zeros
All zeros
Ones
All ones (0xFF)
Sequential
Sequential bytes (0, 1, 2, …, 255, 0, 1, …)
Random
Pseudo-random pattern (deterministic)
Compressible
Compressible repeating text
Text
ASCII text pattern
Trait Implementations§
Source§impl Clone for TestDataPattern
impl Clone for TestDataPattern
Source§fn clone(&self) -> TestDataPattern
fn clone(&self) -> TestDataPattern
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 TestDataPattern
Source§impl Debug for TestDataPattern
impl Debug for TestDataPattern
impl Eq for TestDataPattern
Source§impl PartialEq for TestDataPattern
impl PartialEq for TestDataPattern
Source§fn eq(&self, other: &TestDataPattern) -> bool
fn eq(&self, other: &TestDataPattern) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TestDataPattern
Auto Trait Implementations§
impl Freeze for TestDataPattern
impl RefUnwindSafe for TestDataPattern
impl Send for TestDataPattern
impl Sync for TestDataPattern
impl Unpin for TestDataPattern
impl UnsafeUnpin for TestDataPattern
impl UnwindSafe for TestDataPattern
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