Struct limn_core::resources::id::IdGen [] [src]

pub struct IdGen<I> { /* fields omitted */ }

Generates named Ids, wrappers around increasing usize values. For Ids to be unique, just needs to be one IdGen per Id type.

Methods

impl<I: Id> IdGen<I>
[src]

[src]

[src]

Not to be confused with std::iterator::Iterator::next()! This function simply increases the Id by 1 while keeping the type

Trait Implementations

impl<I: Id> Default for IdGen<I>
[src]

[src]

Returns the "default value" for a type. Read more