pub enum ComparisonResult {
Identical,
SimilarPercentage(f64, f64),
SimilarAbsolute(usize, usize),
Different(ComparisonDetails),
PercentageLimitExceeded(f64, f64),
AbsoluteLimitExceeded(usize, usize),
InvalidMarker1(Vec<u8>, Vec<u8>),
InvalidMarker2(Vec<u8>, Vec<u8>),
Error(String),
}
Expand description
Result of the comparison.
Variants§
Identical
Compared data streams are identical.
SimilarPercentage(f64, f64)
Compared data streams are similar, differences are under specified percentage limit.
SimilarAbsolute(usize, usize)
Compared data streams are similar, differences are under specified absolute limit.
Different(ComparisonDetails)
Compared data streams are different.
PercentageLimitExceeded(f64, f64)
Percentage limit of differences was exceeded, contains the limit (first field) and actual difference (second field).
AbsoluteLimitExceeded(usize, usize)
Absolute limit of differences was exceeded, contains the limit (first field) and actual difference (second field).
InvalidMarker1(Vec<u8>, Vec<u8>)
Invalid marker in the first data stream.
InvalidMarker2(Vec<u8>, Vec<u8>)
Invalid marker in the second data stream.
Error(String)
Comparison process ended with an unexpected error.
Trait Implementations§
Source§impl Clone for ComparisonResult
impl Clone for ComparisonResult
Source§fn clone(&self) -> ComparisonResult
fn clone(&self) -> ComparisonResult
Returns a duplicate 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 ComparisonResult
impl Debug for ComparisonResult
Source§impl PartialEq for ComparisonResult
impl PartialEq for ComparisonResult
impl StructuralPartialEq for ComparisonResult
Auto Trait Implementations§
impl Freeze for ComparisonResult
impl RefUnwindSafe for ComparisonResult
impl Send for ComparisonResult
impl Sync for ComparisonResult
impl Unpin for ComparisonResult
impl UnwindSafe for ComparisonResult
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