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: TReal portion of the complex number in ULPs.
im: TImaginary portion of the complex number in ULPs.
Implementations§
Source§impl<T> ComplexUlps<T>
impl<T> ComplexUlps<T>
Trait Implementations§
Source§impl<T: Clone> Clone for ComplexUlps<T>
impl<T: Clone> Clone for ComplexUlps<T>
Source§fn clone(&self) -> ComplexUlps<T>
fn clone(&self) -> ComplexUlps<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for ComplexUlps<T>
impl<T: Debug> Debug for ComplexUlps<T>
Source§impl<T: PartialEq> PartialEq for ComplexUlps<T>
impl<T: PartialEq> PartialEq for ComplexUlps<T>
impl<T> StructuralPartialEq for ComplexUlps<T>
Auto Trait Implementations§
impl<T> Freeze for ComplexUlps<T>where
T: Freeze,
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§
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