Skip to main content

HasConstLen

Trait HasConstLen 

Source
pub trait HasConstLen {
    const LEN: usize;
}
Expand description

Gets the length of the element

Required Associated Constants§

Source

const LEN: usize

The length as constant usize

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl HasConstLen for ()

Source§

const LEN: usize = 0

Source§

impl<Head, Tail> HasConstLen for (Head, Tail)
where Tail: HasConstLen,

Implementors§