Trait validator::HasLen[][src]

pub trait HasLen {
    fn length(&self) -> u64;
}

Trait to implement if one wants to make the length validator work for more types

A bit sad it's not there by default in Rust

Required Methods

Implementations on Foreign Types

impl HasLen for String
[src]

impl<'a> HasLen for &'a String
[src]

impl<'a> HasLen for &'a str
[src]

impl<'a> HasLen for Cow<'a, str>
[src]

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

impl<'a, T> HasLen for &'a Vec<T>
[src]

Implementors