Trait mentat_core::HasSchema [] [src]

pub trait HasSchema {
    fn entid_for_type(&self, t: ValueType) -> Option<KnownEntid>;
fn get_ident<T>(&self, x: T) -> Option<&Keyword>
    where
        T: Into<Entid>
;
fn get_entid(&self, x: &Keyword) -> Option<KnownEntid>;
fn attribute_for_entid<T>(&self, x: T) -> Option<&Attribute>
    where
        T: Into<Entid>
;
fn attribute_for_ident(
        &self,
        ident: &Keyword
    ) -> Option<(&Attribute, KnownEntid)>;
fn is_attribute<T>(&self, x: T) -> bool
    where
        T: Into<Entid>
;
fn identifies_attribute(&self, x: &Keyword) -> bool;
fn component_attributes(&self) -> &[Entid]; }

Required Methods

Return true if the provided entid identifies an attribute in this schema.

Return true if the provided ident identifies an attribute in this schema.

Important traits for &'a [u8]

Implementors