1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*!
An implementation that provides unique string values.
These string values are a fixed length and are generated as a representation of random UUID 128-bit
values. This implementation depends upon the [blob_uuid](https://crates.io/crates/blob-uuid) crate.
# Example
```rust
use unique_id::{Generator, GeneratorWithInvalid};
use unique_id::string::StringGenerator;
let gen = StringGenerator::default();
let id = gen.next_id();
assert_ne!(id, StringGenerator::invalid_id())
```
*/
use crate::;
// ------------------------------------------------------------------------------------------------
// Public Types
// ------------------------------------------------------------------------------------------------
///
/// Generates random, unique string values from UUIDs. This implementation does provide an invalid
/// value, the empty string.
///
/// Provides implementations of:
///
/// * `Generator` - returns random `String` values.
/// * `GeneratorWithInvalid` - returns an invalid, as an ID, `String` value.
/// * `GeneratorFromStr` - ensures validity of a string representation as an `String` ID.
///
;
// ------------------------------------------------------------------------------------------------
// Implementations
// ------------------------------------------------------------------------------------------------