Skip to main content

ComplexCore

Trait ComplexCore 

Source
pub trait ComplexCore:
    Scalar
    + IntoRuntime
    + CubePrimitive<Scalar: ComplexNativeExpand<FloatElem = Self::FloatElem> + AddNativeExpand + SubNativeExpand + MulNativeExpand + DivNativeExpand + NegNativeExpand + PartialEqNativeExpand>
    + Add<Output = Self>
    + Sub<Output = Self>
    + Mul<Output = Self>
    + Div<Output = Self>
    + Neg<Output = Self>
    + Copy
    + Clone
    + PartialEq
    + Debug
    + Send
    + Sync
    + 'static {
    type FloatElem: Scalar;

    // Provided methods
    fn conj(self) -> Self { ... }
    fn real_val(self) -> Self::FloatElem { ... }
    fn imag_val(self) -> Self::FloatElem { ... }
    fn supported_complex_uses(client: &Client) -> EnumSet<ComplexUsage> { ... }
}

Required Associated Types§

Provided Methods§

Source

fn conj(self) -> Self

Source

fn real_val(self) -> Self::FloatElem

Source

fn imag_val(self) -> Self::FloatElem

Source

fn supported_complex_uses(client: &Client) -> EnumSet<ComplexUsage>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ComplexCore for Complex<f32>

Source§

impl ComplexCore for Complex<f64>

Implementors§