#[repr(C)]pub struct Complex<T> {
pub re: T,
pub im: T,
}🔬This is a nightly-only experimental API. (
complex_numbers #154023)Expand description
A complex number.
Fields§
§re: T🔬This is a nightly-only experimental API. (
complex_numbers #154023)The real component.
im: T🔬This is a nightly-only experimental API. (
complex_numbers #154023)The imaginary component.
Implementations§
Trait Implementations§
impl<T> Copy for Complex<T>where
T: Copy,
impl<T> StructuralPartialEq for Complex<T>where
T: PartialEq,
Auto Trait Implementations§
impl<T> Freeze for Complex<T>where
T: Freeze,
impl<T> RefUnwindSafe for Complex<T>where
T: RefUnwindSafe,
impl<T> Send for Complex<T>where
T: Send,
impl<T> Sync for Complex<T>where
T: Sync,
impl<T> Unpin for Complex<T>where
T: Unpin,
impl<T> UnsafeUnpin for Complex<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Complex<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