Skip to main content

MatrixElement

Trait MatrixElement 

Source
pub trait MatrixElement:
    Copy
    + Add<Output = Self>
    + Mul<Output = Self> {
    const ZERO: Self;
    const ONE: Self;
}
Expand description

Trait for types that can be used as matrix elements.

Required Associated Constants§

Source

const ZERO: Self

Source

const ONE: Self

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.

Implementations on Foreign Types§

Source§

impl MatrixElement for f32

Source§

const ONE: Self = 1.0

Source§

const ZERO: Self = 0.0

Source§

impl MatrixElement for f64

Source§

const ONE: Self = 1.0

Source§

const ZERO: Self = 0.0

Implementors§

Source§

impl MatrixElement for Fixed

Source§

const ONE: Self = Fixed::ONE

Source§

const ZERO: Self = Fixed::ZERO