Enum qecs_core::IdActivationError [] [src]

pub enum IdActivationError<Slot> {
    MaximumIdCountReached(usize),
    AlreadyActivated,
    SlotOccupied(Slot),
}

Variants

The id couldn't be activated because the maximum id count this id-type or this id-manager allows was reached.

TODO: naming?

The id couldn't be activated because it already is.

The id couldn't be activated because the internal slot (in the id-manager) it would use is already occupied.

This can be the case for id-types which have an generation attached (SafeIndex).

Example: You try to activate a = {idx:200, gen:5}, but b = {idx:200, gen:4} is already active. If you want to force as activation, you first need to invalidate b.

Trait Implementations

impl<Slot: Debug> Debug for IdActivationError<Slot>
[src]

Formats the value using the given formatter.

impl<Slot: PartialEq> PartialEq for IdActivationError<Slot>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<Slot: Eq> Eq for IdActivationError<Slot>
[src]