Trait faer_core::Conjugate

source ·
pub unsafe trait Conjugate: Entity {
    type Conj: Entity + Conjugate<Conj = Self, Canonical = Self::Canonical>;
    type Canonical: Entity + Conjugate;

    // Required method
    fn canonicalize(self) -> Self::Canonical;
}
Expand description

Trait for types that may be implicitly conjugated.

§Safety

The associated types and functions must fulfill their respective contracts.

Required Associated Types§

source

type Conj: Entity + Conjugate<Conj = Self, Canonical = Self::Canonical>

Must have the same layout as Self, and Conj::Unit must have the same layout as Unit.

source

type Canonical: Entity + Conjugate

Must have the same layout as Self, and Canonical::Unit must have the same layout as Unit.

Required Methods§

source

fn canonicalize(self) -> Self::Canonical

Performs the implicit conjugation operation on the given value, returning the canonical form.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Conjugate for f32

source§

impl Conjugate for f64

source§

impl<E> Conjugate for Complex<E>
where E: Entity + ComplexField,

Implementors§