Skip to main content

Length

Trait Length 

Source
pub trait Length {
    const SIZE: usize = 0;

    // Provided methods
    fn len(&self) -> usize { ... }
    fn is_empty(&self) -> bool { ... }
}

Provided Associated Constants§

Source

const SIZE: usize = 0

Provided Methods§

Source

fn len(&self) -> usize

Source

fn is_empty(&self) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl Length for Empty

Source§

impl<V, N: Length> Length for dynamic_list::array::Node<V, N>

Source§

impl<V, N: Length> Length for dynamic_list::list::Node<V, N>