[][src]Trait entity::KeyValueDatabase

pub trait KeyValueDatabase: Database {
    pub fn ids(&self) -> HashSet<Id>;
pub fn has_id(&self, id: Id) -> bool;
pub fn ids_for_type(&self, type: &str) -> HashSet<Id>; }

Represents a key-value store database that performs synchronous insertion, retrieval, and removal. It provides blanket support for Database(super::Database] to perform complex operations.

Required methods

pub fn ids(&self) -> HashSet<Id>[src]

Returns ids of all ents stored in the database

pub fn has_id(&self, id: Id) -> bool[src]

Returns true if database contains the provided id

pub fn ids_for_type(&self, type: &str) -> HashSet<Id>[src]

Returns ids of all ents for the given type

Loading content...

Implementors

Loading content...