pub struct C {
pub re: f64,
pub im: f64,
}Expand description
A complex number re + im·i over f64. Just enough algebra for
statevector simulation (no num-complex dependency).
Fields§
§re: f64§im: f64Implementations§
Trait Implementations§
impl Copy for C
impl StructuralPartialEq for C
Auto Trait Implementations§
impl Freeze for C
impl RefUnwindSafe for C
impl Send for C
impl Sync for C
impl Unpin for C
impl UnsafeUnpin for C
impl UnwindSafe for C
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