Struct keeshond_datapack::DataMultistore[][src]

pub struct DataMultistore { /* fields omitted */ }
Expand description

Storage that allows lookup and access of DataObjects of multiple types by wrapping multiple DataStores.

Implementations

Constructs a new DataMultistore that gets its Sources from the given SourceManager

Informs the DataMultistore of a new DataObject to manage a DataStore for. Returns true if successful.

Sets whether mutable access to types is disallowed.

Returns a reference to the DataStore of the given type. Panics if it cannot be retrieved.

Returns a mutable reference to the DataStore of the given type. Panics if it cannot be retrieved.

Returns a reference to the DataStore of the given type. Returns None if it cannot be retrieved.

Returns a mutable reference to the DataStore of the given type. Returns None if it cannot be retrieved.

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.

Should always be Self

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.