[][src]Struct rustpython_vm::obj::objcomplex::PyComplex

pub struct PyComplex { /* fields omitted */ }

Create a complex number from a real part and an optional imaginary part.

This is equivalent to (real + imag*1j) where imag defaults to 0.

Trait Implementations

impl Clone for PyComplex[src]

impl Copy for PyComplex[src]

impl Debug for PyComplex[src]

impl From<Complex<f64>> for PyComplex[src]

impl PartialEq<PyComplex> for PyComplex[src]

impl PyClassDef for PyComplex[src]

impl PyClassImpl for PyComplex[src]

impl PyValue for PyComplex[src]

impl StructuralPartialEq for PyComplex[src]

Auto Trait Implementations

impl RefUnwindSafe for PyComplex

impl Send for PyComplex

impl Sync for PyComplex

impl Unpin for PyComplex

impl UnwindSafe for PyComplex

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoPyObject for T where
    T: PyValue
[src]

impl<T> PyObjectPayload for T where
    T: 'static + PyValue
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,