pub struct Complex {
pub re: f64,
pub im: f64,
}Expand description
A complex number (complex).
Fields§
§re: f64real.
im: f64imag.
Implementations§
Source§impl Complex
impl Complex
Sourcepub const fn real(re: f64) -> Self
pub const fn real(re: f64) -> Self
complex(re), or a real number as an operand of a complex operation.
Sourcepub const fn from_point((x, y): (f64, f64)) -> Self
pub const fn from_point((x, y): (f64, f64)) -> Self
complex(*pt).
Trait Implementations§
Source§impl AddAssign for Complex
impl AddAssign for Complex
Source§fn add_assign(&mut self, b: Complex)
fn add_assign(&mut self, b: Complex)
Performs the
+= operation. Read moreimpl 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