[][src]Trait unique_id::GeneratorWithInvalid

pub trait GeneratorWithInvalid<T>: Generator<T> where
    T: PartialEq
{ fn invalid_id() -> T
    where
        Self: Sized
; }

For generators that are able to reserve a unique value that is not valid as an ID.

Required methods

fn invalid_id() -> T where
    Self: Sized

Return a unique value that is not valid as an ID.

Loading content...

Implementors

impl GeneratorWithInvalid<i64> for SequenceGenerator[src]

impl GeneratorWithInvalid<u128> for RandomGenerator[src]

impl GeneratorWithInvalid<String> for StringGenerator[src]

Loading content...