pub struct AppendStore<'a, T, S, Ser = Bincode2> where
    T: Serialize + DeserializeOwned,
    S: ReadonlyStorage,
    Ser: Serde
{ /* private fields */ }
Expand description

A type allowing only reads from an append store. useful in the context_, u8 of queries.

Implementations

Try to use the provided storage as an AppendStore.

Returns None if the provided storage doesn’t seem like an AppendStore. Returns Err if the contents of the storage can not be parsed.

Try to use the provided storage as an AppendStore. This method allows choosing the serialization format you want to use.

Returns None if the provided storage doesn’t seem like an AppendStore. Returns Err if the contents of the storage can not be parsed.

Return an iterator over the items in the collection

Get the value stored at a given position.

Errors

Will return an error if pos is out of bounds or if an item is not found.

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

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. 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

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.