Simplee > Aabel > Identifier
Description
A Rust crate that defines some behavior related to identifiers, such:
- any type which implements Eq will be an Identifier.
- any type which implements PartialOrd will be a PartialOrdIdentifier.
- capabilities to generate sequences of identifiers.
Examples
Any type which implements the [Eq
] trait will automatically be an identifier.
use *;
let id = 10_u8;
test_identifier;
You can create an iterator which generates new idenfiers, given a starting point and a function which compute a new identifier value from a previous one.
use *;
let id = 10_u8;
let mut iter = id.into_ids_iterator;
assert_eq!;
assert_eq!;
About
Code designed and written on the beautiful island of Saaremaa, Estonia.