Trait mentat_core::CachedAttributes [] [src]

pub trait CachedAttributes {
    fn is_attribute_cached_reverse(&self, entid: Entid) -> bool;
fn is_attribute_cached_forward(&self, entid: Entid) -> bool;
fn has_cached_attributes(&self) -> bool;
fn get_values_for_entid(
        &self,
        schema: &Schema,
        attribute: Entid,
        entid: Entid
    ) -> Option<&Vec<TypedValue>>;
fn get_value_for_entid(
        &self,
        schema: &Schema,
        attribute: Entid,
        entid: Entid
    ) -> Option<&TypedValue>;
fn get_entid_for_value(
        &self,
        attribute: Entid,
        value: &TypedValue
    ) -> Option<Entid>;
fn get_entids_for_value(
        &self,
        attribute: Entid,
        value: &TypedValue
    ) -> Option<&BTreeSet<Entid>>; }

Required Methods

Reverse lookup.

Implementors