pub trait ConstLength {
const LEN: usize;
}Expand description
A trait implemented for entities with known length at compile-time.
This trait defines a constant LEN, representing the length of the entity.
Required Associated Constants§
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<E> ConstLength for (E, E, E, E)
impl<E> ConstLength for (E, E, E, E)
Source§impl<T> ConstLength for &Twhere
T: ConstLength,
Implementation of ConstLength for references to entities.
impl<T> ConstLength for &Twhere
T: ConstLength,
Implementation of ConstLength for references to entities.
Source§impl<T> ConstLength for &mut Twhere
T: ConstLength,
Implementation of ConstLength for mutable references to entities.
impl<T> ConstLength for &mut Twhere
T: ConstLength,
Implementation of ConstLength for mutable references to entities.