Enum specs::InsertResult [] [src]

pub enum InsertResult<T> {
    Inserted,
    Updated(T),
    EntityIsDead(T),
}

The status of an insert()ion into a storage.

Variants

The value was inserted and there was no value before

The value was updated an already inserted value the value returned is the old value

The value failed to insert because the entity was invalid

Trait Implementations

impl<T: Debug> Debug for InsertResult<T>
[src]

[src]

Formats the value using the given formatter.

impl<T: PartialEq> PartialEq for InsertResult<T>
[src]

[src]

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

[src]

This method tests for !=.