[−][src]Trait identifier::Identifier
Trait for id structures.
This trait is not intented to be implemented manually you should use derive. Refers to the module documentation to provide a module with functions to:
- generate inner id / u128 value
- validate
Associated Types
type Id
[src]
type ParseError
[src]
Required methods
pub fn generate() -> Self::Id
[src]
Generate a new id
pub fn format(&self) -> String
[src]
format the id to a string
pub fn parse_str(s: &str) -> Result<Self::Id, Self::ParseError>
[src]
Parse a string to an id