pub struct Entry<T> {
    pub value: T,
    /* private fields */
}
Expand description

An entry in the sparse set. You can retrieve a slice (possibly mutable) of Entry from the SparseSet.

Fields

value: T

The value stored in the entry. A reference to it is returned by value() and value_mut(), as well as get() and get_mut() directly from SparseSet. The field can be used without going trough the accessors functions since it is public.

Implementations

Read-only access to the entry’s key.

Returns the value. Mainly for symmetry with key() since the value is public anyway.

Returns the value, mutable. Mainly for symmetry with key() since the value is public anyway.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.