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
fn entid_for_type(&self, t: ValueType) -> Option<KnownEntid>
fn get_ident<T>(&self, x: T) -> Option<&Keyword> where
T: Into<Entid>,
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>,
T: Into<Entid>,
fn attribute_for_ident(
&self,
ident: &Keyword
) -> Option<(&Attribute, KnownEntid)>
&self,
ident: &Keyword
) -> Option<(&Attribute, KnownEntid)>
fn is_attribute<T>(&self, x: T) -> bool where
T: Into<Entid>,
T: Into<Entid>,
Return true if the provided entid identifies an attribute in this schema.
fn identifies_attribute(&self, x: &Keyword) -> bool
Return true if the provided ident identifies an attribute in this schema.
fn component_attributes(&self) -> &[Entid]
Implementors
impl HasSchema for Schema