#[non_exhaustive]pub struct ComparisonOptions {
pub skip_1: Option<usize>,
pub skip_2: Option<usize>,
pub max_bytes: Option<usize>,
pub marker: Option<Vec<u8>>,
pub percentage_limit: Option<f64>,
pub absolute_limit: Option<usize>,
}
Expand description
Comparison options.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.skip_1: Option<usize>
Number of starting bytes to skip in the first data stream.
skip_2: Option<usize>
Number of starting bytes to skip in the second data stream.
max_bytes: Option<usize>
Maximum number of bytes to compare.
marker: Option<Vec<u8>>
Expected file marker at the beginning of both data streams.
percentage_limit: Option<f64>
Accepted percentage limit of differences between compared data streams.
absolute_limit: Option<usize>
Accepted absolute limit of differences between compared data streams.
Trait Implementations§
Source§impl Clone for ComparisonOptions
impl Clone for ComparisonOptions
Source§fn clone(&self) -> ComparisonOptions
fn clone(&self) -> ComparisonOptions
Returns a copy of the value. Read more
1.0.0 · 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 ComparisonOptions
impl Debug for ComparisonOptions
Source§impl Default for ComparisonOptions
impl Default for ComparisonOptions
Source§fn default() -> ComparisonOptions
fn default() -> ComparisonOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ComparisonOptions
impl RefUnwindSafe for ComparisonOptions
impl Send for ComparisonOptions
impl Sync for ComparisonOptions
impl Unpin for ComparisonOptions
impl UnwindSafe for ComparisonOptions
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