pub struct NameTable(_);
Expand description

A lookup table mapping Name components back to their Entity.

Methods from Deref<Target = IndexMap<Name, Entity>>

Computes in O(1) time.

Return a reference to the map’s BuildHasher.

Return the number of key-value pairs in the map.

Computes in O(1) time.

Returns true if the map contains no elements.

Computes in O(1) time.

Return an iterator over the key-value pairs of the map, in their order

Return an iterator over the keys of the map, in their order

Return an iterator over the values of the map, in their order

Return true if an equivalent to key exists in the map.

Computes in O(1) time (average).

Return a reference to the value stored for key, if it is present, else None.

Computes in O(1) time (average).

Return references to the key-value pair stored for key, if it is present, else None.

Computes in O(1) time (average).

Return item index, key and value

Return item index, if it exists in the map

Computes in O(1) time (average).

Get a key-value pair by index

Valid indices are 0 <= index < self.len()

Computes in O(1) time.

Get the first key-value pair

Computes in O(1) time.

Get the last key-value pair

Computes in O(1) time.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

The resulting type after dereferencing.

Dereferences the value.

Deserialize this value from the given Serde deserializer. Read more

Performs the conversion.

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

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

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

The storage type required to hold all instances of this component in a world.

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait. 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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.