pub struct UnitComplex<U> { /* private fields */ }Implementations§
Source§impl<U: Unit> UnitComplex<U>
impl<U: Unit> UnitComplex<U>
pub fn new<N1: Into<UnitNumber<U>>, N2: Into<UnitNumber<U>>>( re: N1, im: N2, ) -> Self
pub fn parts(&self) -> (UnitNumber<U>, UnitNumber<U>)
pub fn conjugate(&self) -> Self
pub fn abs(&self) -> UnitNumber<U>
pub fn arg(&self) -> Number
Trait Implementations§
Source§impl<U: Clone> Clone for UnitComplex<U>
impl<U: Clone> Clone for UnitComplex<U>
Source§fn clone(&self) -> UnitComplex<U>
fn clone(&self) -> UnitComplex<U>
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<U: Debug> Debug for UnitComplex<U>
impl<U: Debug> Debug for UnitComplex<U>
Source§impl<U: Unit> Display for UnitComplex<U>
impl<U: Unit> Display for UnitComplex<U>
Source§impl<U: PartialEq> PartialEq for UnitComplex<U>
impl<U: PartialEq> PartialEq for UnitComplex<U>
impl<U: Copy> Copy for UnitComplex<U>
impl<U: Eq> Eq for UnitComplex<U>
impl<U> StructuralPartialEq for UnitComplex<U>
Auto Trait Implementations§
impl<U> Freeze for UnitComplex<U>
impl<U> RefUnwindSafe for UnitComplex<U>where
U: RefUnwindSafe,
impl<U> Send for UnitComplex<U>where
U: Send,
impl<U> Sync for UnitComplex<U>where
U: Sync,
impl<U> Unpin for UnitComplex<U>where
U: Unpin,
impl<U> UnwindSafe for UnitComplex<U>where
U: 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