pub struct Complex {
pub re: f64,
pub im: f64,
}Expand description
A complex number re + i·im with f64 parts.
The type has only the operations the simulator needs. Arithmetic follows IEEE 754: NaN and infinities propagate and are not checked.
Fields§
§re: f64The real part.
im: f64The imaginary part.
Implementations§
Trait Implementations§
impl Copy for Complex
impl StructuralPartialEq for Complex
Auto Trait Implementations§
impl Forget for Complex
impl Freeze for Complex
impl Move for Complex
impl RefUnwindSafe for Complex
impl Send for Complex
impl Sync for Complex
impl Unpin for Complex
impl UnsafeUnpin for Complex
impl UnwindSafe for Complex
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