Skip to main content

Module id

Module id 

Source
Expand description

Code for handling IDs

Macrosยง

define_id_getter ๐Ÿ”’
Implement the HasID trait for the given type, assuming it has a field called id
define_id_methods ๐Ÿ”’
define_id_type ๐Ÿ”’

Structsยง

MissingIDError
Indicates that the specified ID was not found in a given collection

Traitsยง

GetIDValue
A trait for getting an ID and a value from a map
HasID
Indicates that the struct has an ID field
ID
A trait for ID types
IDCollection
A data structure containing a set of IDs