Trait cl_traits::Length[][src]

pub trait Length {
    fn length(&self) -> usize;
}
Expand description

See length for more information.

Required methods

Holds a certain number of elements.

Implementations on Foreign Types

let mut opt = Some(0);
assert_eq!(cl_traits::Length::length(&opt), 1);
opt.take();
assert_eq!(cl_traits::Length::length(&opt), 0);

Implementors