[][src]Trait validator::HasLen

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

fn length(&self) -> u64

Loading content...

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]

Loading content...

Implementors

Loading content...