Struct conrod_core::widget::id::Generator[][src]

pub struct Generator<'a> { /* fields omitted */ }
Expand description

Used for generating new unique widget::Ids.

Generator is used by the widget_ids! macro and the types and fields that it generates in order to generate unique widget::Ids for each of the generated fields.

Implementations

Constructor for a new widget::Id generator.

Generate a new, unique widget::Id into a Placeholder node within the widget graph. This should only be called once for each unique widget needed to avoid unnecessary bloat within the Ui’s widget graph.

When using this method, be sure to store the returned widget::Id somewhere so that it can be re-used on next update.

Panics if adding another node would exceed the maximum capacity for node indices.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.