pub trait VectorSpace: Copy + Zero + PartialEq
where Self: Add<Output = Self> + Sub<Output = Self> + Mul<Self::Scalar, Output = Self> + Div<Self::Scalar, Output = Self> + Neg<Output = Self>,
{ type Scalar: Real + PartialOrd; }
Expand description

This trait specifies some type to be a vector type. It specifies the scalar type and is required for other vector types.

Required Associated Types§

source

type Scalar: Real + PartialOrd

The scalar type of the vector space.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl VectorSpace for f32

§

type Scalar = f32

source§

impl VectorSpace for f64

§

type Scalar = f64

Implementors§