Struct mentat_db::cache::AttributeCaches [] [src]

pub struct AttributeCaches { /* fields omitted */ }

Methods

impl AttributeCaches
[src]

impl AttributeCaches
[src]

Return a reference to the cache for the provided a, if a names an attribute that is cached in the forward direction. If a doesn't name an attribute, or it's not cached at all, or it's only cached in reverse (v to e, not e to v), None is returned.

Fetch the requested entities and attributes from the store and put them in the cache. The caller is responsible for ensuring that entities is unique. Attributes for which every entity is already cached will not be processed again.

Fetch the requested entities and attributes and put them in a new cache. The caller is responsible for ensuring that entities is unique.

Trait Implementations

impl Clone for AttributeCaches
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for AttributeCaches
[src]

Formats the value using the given formatter. Read more

impl Default for AttributeCaches
[src]

Returns the "default value" for a type. Read more

impl CachedAttributes for AttributeCaches
[src]

Reverse lookup.

impl UpdateableCache<DbError> for AttributeCaches
[src]

Auto Trait Implementations

impl Send for AttributeCaches

impl Sync for AttributeCaches