pub enum Exactness {
Exact,
Rounded,
Approximate,
}Expand description
How exact a result is. These classifications are mutually exclusive and are never inferred from mere repeatability.
Variants§
Exact
The result is mathematically exact under the selected representation.
Rounded
The result was rounded under a declared context (e.g. decimal division, money quantization). The context and inexactness are reported.
Approximate
The result is a floating-point approximation. Accuracy is bounded by the method, not by the representation alone.
Implementations§
Trait Implementations§
impl Copy for Exactness
Source§impl<'de> Deserialize<'de> for Exactness
impl<'de> Deserialize<'de> for Exactness
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Exactness
impl StructuralPartialEq for Exactness
Auto Trait Implementations§
impl Freeze for Exactness
impl RefUnwindSafe for Exactness
impl Send for Exactness
impl Sync for Exactness
impl Unpin for Exactness
impl UnsafeUnpin for Exactness
impl UnwindSafe for Exactness
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