pub enum Approximation<T> {
Approximated(T),
Exact(T),
}
Expand description
Represents a number conversion with probably exact value.
Variants§
Implementations§
Source§impl<T> Approximation<T>
impl<T> Approximation<T>
Trait Implementations§
Source§impl<T: Debug> Debug for Approximation<T>
impl<T: Debug> Debug for Approximation<T>
Source§impl<T: PartialEq> PartialEq for Approximation<T>
impl<T: PartialEq> PartialEq for Approximation<T>
impl<T> StructuralPartialEq for Approximation<T>
Auto Trait Implementations§
impl<T> Freeze for Approximation<T>where
T: Freeze,
impl<T> RefUnwindSafe for Approximation<T>where
T: RefUnwindSafe,
impl<T> Send for Approximation<T>where
T: Send,
impl<T> Sync for Approximation<T>where
T: Sync,
impl<T> Unpin for Approximation<T>where
T: Unpin,
impl<T> UnwindSafe for Approximation<T>where
T: UnwindSafe,
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