pub trait ElementOpApply: Copy {
// Provided methods
fn conj(self) -> Self { ... }
fn transpose(self) -> Self { ... }
fn adjoint(self) -> Self { ... }
}Expand description
Trait for types that support element operations (conj, transpose, adjoint).
Default implementations return self unchanged, so real-valued types
(and custom types that don’t need complex operations) can simply write:
ⓘ
impl ElementOpApply for MyType {}Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.