# Trait MatrixElement

    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§

#### const ZERO: Self

#### 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§

§

### impl MatrixElement for f32

§

#### const ONE: f32 = 1f32

§

#### const ZERO: f32 = 0f32

§

### impl MatrixElement for f64

§

#### const ONE: f64 = 1f64

§

#### const ZERO: f64 = 0f64

## Implementors§

§

### impl MatrixElement for Fixed

§

#### const ONE: Fixed = Fixed::ONE

§

#### const ZERO: Fixed = Fixed::ZERO