#[non_exhaustive]pub enum ErrorBound {
Absolute(f64),
Relative(f64),
PSNR(f64),
L2Norm(f64),
AbsoluteAndRelative {
absolute_bound: f64,
relative_bound: f64,
},
AbsoluteOrRelative {
absolute_bound: f64,
relative_bound: f64,
},
}Expand description
Error-bound mode that controls how much distortion SZ3 is allowed to introduce during lossy compression.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for ErrorBound
impl Clone for ErrorBound
Source§fn clone(&self) -> ErrorBound
fn clone(&self) -> ErrorBound
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 ErrorBound
impl Debug for ErrorBound
impl Copy for ErrorBound
Auto Trait Implementations§
impl Freeze for ErrorBound
impl RefUnwindSafe for ErrorBound
impl Send for ErrorBound
impl Sync for ErrorBound
impl Unpin for ErrorBound
impl UnsafeUnpin for ErrorBound
impl UnwindSafe for ErrorBound
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