pub enum ComplexNumber {
Single((Box<Value>, Box<Value>)),
Array(Vec<(Box<Value>, Box<Value>)>),
}Expand description
Both the real and imaginary parts of a complex number must be of the same type, and obviously must be numbers.
Variants§
Trait Implementations§
Source§impl Debug for ComplexNumber
impl Debug for ComplexNumber
Source§impl PartialEq for ComplexNumber
impl PartialEq for ComplexNumber
impl StructuralPartialEq for ComplexNumber
Auto Trait Implementations§
impl Freeze for ComplexNumber
impl RefUnwindSafe for ComplexNumber
impl Send for ComplexNumber
impl Sync for ComplexNumber
impl Unpin for ComplexNumber
impl UnwindSafe for ComplexNumber
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