pub enum Ternary {
Conserved = 1,
Approximate = 0,
Violated = -1,
}Expand description
Ternary verification result for conservation checks.
Variants§
Conserved = 1
Quantity is exactly conserved.
Approximate = 0
Quantity is approximately conserved (within epsilon).
Violated = -1
Conservation is violated beyond threshold.
Implementations§
Trait Implementations§
impl Copy for Ternary
impl Eq for Ternary
Source§impl Ord for Ternary
impl Ord for Ternary
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Ternary
impl PartialOrd for Ternary
impl StructuralPartialEq for Ternary
Auto Trait Implementations§
impl Freeze for Ternary
impl RefUnwindSafe for Ternary
impl Send for Ternary
impl Sync for Ternary
impl Unpin for Ternary
impl UnsafeUnpin for Ternary
impl UnwindSafe for Ternary
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