Struct float_eq::ComplexUlps
source · [−]pub struct ComplexUlps<T> {
pub re: T,
pub im: T,
}
Expand description
The absolute difference between two floating point num::Complex<T>
instances
in ULPs.
The T
in num::Complex<T>
is constrained by Clone
and PartialEq
, so this
implements those too.
Fields
re: T
Real portion of the complex number in ULPs.
im: T
Imaginary portion of the complex number in ULPs.
Implementations
sourceimpl<T> ComplexUlps<T>
impl<T> ComplexUlps<T>
Trait Implementations
sourceimpl<T: Clone> Clone for ComplexUlps<T>
impl<T: Clone> Clone for ComplexUlps<T>
sourcefn clone(&self) -> ComplexUlps<T>
fn clone(&self) -> ComplexUlps<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T: Debug> Debug for ComplexUlps<T>
impl<T: Debug> Debug for ComplexUlps<T>
sourceimpl<T: PartialEq> PartialEq<ComplexUlps<T>> for ComplexUlps<T>
impl<T: PartialEq> PartialEq<ComplexUlps<T>> for ComplexUlps<T>
sourcefn eq(&self, other: &ComplexUlps<T>) -> bool
fn eq(&self, other: &ComplexUlps<T>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ComplexUlps<T>) -> bool
fn ne(&self, other: &ComplexUlps<T>) -> bool
This method tests for !=
.
impl<T> StructuralPartialEq for ComplexUlps<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for ComplexUlps<T> where
T: RefUnwindSafe,
impl<T> Send for ComplexUlps<T> where
T: Send,
impl<T> Sync for ComplexUlps<T> where
T: Sync,
impl<T> Unpin for ComplexUlps<T> where
T: Unpin,
impl<T> UnwindSafe for ComplexUlps<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