Skip to main content

Length

Trait Length 

Source
pub trait Length {
    // Required method
    fn len(&self) -> usize;

    // Provided method
    fn is_empty(&self) -> bool { ... }
}

Required Methods§

Source

fn len(&self) -> usize

Provided Methods§

Source

fn is_empty(&self) -> bool

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<I, T> Length for TiVec<I, T>

Source§

fn len(&self) -> usize

Source§

fn is_empty(&self) -> bool

Source§

impl<T> Length for Vec<T>

Source§

fn len(&self) -> usize

Implementors§

Source§

impl Length for GraphGroup

Source§

impl<OID: IndexLike> Length for SingleOrAllOrientations<'_, OID>

Source§

impl<T> Length for LoopMomenta<T>