VectorSpace

Trait VectorSpace 

Source
pub trait VectorSpace<const SIZE: usize>
where Self: Collection + Indexable + VectorIter<<Self as Collection>::Scalar, SIZE>,
{ }
Expand description

A marker trait that groups together the essential immutable behaviors of a fixed-size vector.

This trait combines Collection, Indexable, and VectorIter, providing a convenient bound for generic functions that operate on vector-like types. Any type that satisfies these bounds will automatically implement VectorSpace.

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.

Implementors§

Source§

impl<T, const SIZE: usize> VectorSpace<SIZE> for T
where Self: Collection + Indexable + VectorIter<<Self as Collection>::Scalar, SIZE>,