Struct ore::id_gen::Gen [−][src]
pub struct Gen<Id: From<u64> + Default> {
id: u64,
phantom: PhantomData<Id>,
}Expand description
Manages the allocation of unique IDs.
Fields
id: u64phantom: PhantomData<Id>Implementations
Allocates a new identifier of type Id and advances the generator.
Trait Implementations
Auto Trait Implementations
impl<Id> RefUnwindSafe for Gen<Id> where
Id: RefUnwindSafe,
impl<Id> UnwindSafe for Gen<Id> where
Id: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more