[][src]Trait unique_id::GeneratorFromStr

pub trait GeneratorFromStr<T>: Generator<T> where
    T: PartialEq + FromStr
{ fn is_valid_value(s: &str) -> bool; }

If the type T implements FromStr then the associated function is_valid_value determines whether the value s is valid as an ID value.

Required methods

fn is_valid_value(s: &str) -> bool

Is the value s valid as an ID?

Loading content...

Implementors

impl GeneratorFromStr<i64> for SequenceGenerator[src]

impl GeneratorFromStr<String> for StringGenerator[src]

Loading content...