[][src]Trait valid::property::HasLength

pub trait HasLength {
    fn length(&self) -> usize;
}

The length property of a type.

This is usually a property of some kind of container like String, Vec, HashSet, HashMap or &[T].

Required methods

fn length(&self) -> usize

Returns the length of a value

Loading content...

Implementations on Foreign Types

impl HasLength for String[src]

impl<'_> HasLength for &'_ str[src]

impl<T> HasLength for Vec<T>[src]

impl<'_, T> HasLength for &'_ [T][src]

impl<T> HasLength for VecDeque<T>[src]

impl<T> HasLength for LinkedList<T>[src]

impl<T> HasLength for BTreeSet<T>[src]

impl<K, V> HasLength for BTreeMap<K, V>[src]

Loading content...

Implementors

Loading content...