Trait substrate::io::FlatLen

source ·
pub trait FlatLen {
    // Required method
    fn len(&self) -> usize;

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

The length of the flattened list.

Required Methods§

source

fn len(&self) -> usize

The length of the flattened list.

Provided Methods§

source

fn is_empty(&self) -> bool

Whether or not the flattened representation is empty.

Implementations on Foreign Types§

source§

impl FlatLen for ()

source§

fn len(&self) -> usize

source§

impl FlatLen for Vec<Node>

source§

fn len(&self) -> usize

source§

impl<T> FlatLen for &T
where T: FlatLen,

source§

fn len(&self) -> usize

Implementors§