Enum num_irrational::Approximation
source · [−]pub enum Approximation<T> {
Approximated(T),
Exact(T),
}Expand description
Represents a number conversion with probably exact value.
Variants
Approximated(T)
Exact(T)
Implementations
sourceimpl<T> Approximation<T>
impl<T> Approximation<T>
Trait Implementations
sourceimpl<T: Debug> Debug for Approximation<T>
impl<T: Debug> Debug for Approximation<T>
sourceimpl<T: PartialEq> PartialEq<Approximation<T>> for Approximation<T>
impl<T: PartialEq> PartialEq<Approximation<T>> for Approximation<T>
sourcefn eq(&self, other: &Approximation<T>) -> bool
fn eq(&self, other: &Approximation<T>) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &Approximation<T>) -> bool
fn ne(&self, other: &Approximation<T>) -> bool
This method tests for !=.
impl<T> StructuralPartialEq for Approximation<T>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more