Trait VectorWithLength

Source
pub trait VectorWithLength<const LEN: usize> { }
Expand description

A trait indicate that entity in case of referencing it can be interpreted as such having specified length LEN.

This trait defines a constant LEN, representing the length of the entity.

Implementations on Foreign Types§

Source§

impl<T, const LEN: usize> VectorWithLength<LEN> for &T
where T: VectorWithLength<LEN>,

Implementation of VectorWithLength for references to entities.

Source§

impl<T, const LEN: usize> VectorWithLength<LEN> for &mut T
where T: VectorWithLength<LEN>,

Implementation of VectorWithLength for mutable references to entities.

Implementors§