Trait mentat_ffi::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<i64>; fn get_entid(&self, x: &Keyword) -> Option<KnownEntid>; fn attribute_for_entid<T>(&self, x: T) -> Option<&Attribute>
where
T: Into<i64>; fn attribute_for_ident(
&self,
ident: &Keyword
) -> Option<(&Attribute, KnownEntid)>; fn is_attribute<T>(&self, x: T) -> bool
where
T: Into<i64>; fn identifies_attribute(&self, x: &Keyword) -> bool; fn component_attributes(&self) -> &[i64]; }
Required Methods
fn entid_for_type(&self, t: ValueType) -> Option<KnownEntid>
fn get_ident<T>(&self, x: T) -> Option<&Keyword> where
T: Into<i64>,
T: Into<i64>,
fn get_entid(&self, x: &Keyword) -> Option<KnownEntid>
fn attribute_for_entid<T>(&self, x: T) -> Option<&Attribute> where
T: Into<i64>,
T: Into<i64>,
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<i64>,
T: Into<i64>,
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) -> &[i64]
Implementations on Foreign Types
impl<'a, 'c> HasSchema for InProgressRead<'a, 'c>
[src]
impl<'a, 'c> HasSchema for InProgressRead<'a, 'c>
fn entid_for_type(&self, t: ValueType) -> Option<KnownEntid>
[src]
fn entid_for_type(&self, t: ValueType) -> Option<KnownEntid>
fn get_ident<T>(&self, x: T) -> Option<&Keyword> where
T: Into<i64>,
[src]
fn get_ident<T>(&self, x: T) -> Option<&Keyword> where
T: Into<i64>,
fn get_entid(&self, x: &Keyword) -> Option<KnownEntid>
[src]
fn get_entid(&self, x: &Keyword) -> Option<KnownEntid>
fn attribute_for_entid<T>(&self, x: T) -> Option<&Attribute> where
T: Into<i64>,
[src]
fn attribute_for_entid<T>(&self, x: T) -> Option<&Attribute> where
T: Into<i64>,
fn attribute_for_ident(
&self,
ident: &Keyword
) -> Option<(&Attribute, KnownEntid)>
[src]
fn attribute_for_ident(
&self,
ident: &Keyword
) -> Option<(&Attribute, KnownEntid)>
fn is_attribute<T>(&self, x: T) -> bool where
T: Into<i64>,
[src]
fn is_attribute<T>(&self, x: T) -> bool where
T: Into<i64>,
Return true if the provided entid identifies an attribute in this schema.
fn identifies_attribute(&self, x: &Keyword) -> bool
[src]
fn identifies_attribute(&self, x: &Keyword) -> bool
Return true if the provided ident identifies an attribute in this schema.
fn component_attributes(&self) -> &[i64]
[src]
fn component_attributes(&self) -> &[i64]
impl HasSchema for Schema
[src]
impl HasSchema for Schema
fn entid_for_type(&self, t: ValueType) -> Option<KnownEntid>
[src]
fn entid_for_type(&self, t: ValueType) -> Option<KnownEntid>
fn get_ident<T>(&self, x: T) -> Option<&Keyword> where
T: Into<i64>,
[src]
fn get_ident<T>(&self, x: T) -> Option<&Keyword> where
T: Into<i64>,
fn get_entid(&self, x: &Keyword) -> Option<KnownEntid>
[src]
fn get_entid(&self, x: &Keyword) -> Option<KnownEntid>
fn attribute_for_entid<T>(&self, x: T) -> Option<&Attribute> where
T: Into<i64>,
[src]
fn attribute_for_entid<T>(&self, x: T) -> Option<&Attribute> where
T: Into<i64>,
fn attribute_for_ident(
&self,
ident: &Keyword
) -> Option<(&Attribute, KnownEntid)>
[src]
fn attribute_for_ident(
&self,
ident: &Keyword
) -> Option<(&Attribute, KnownEntid)>
fn is_attribute<T>(&self, x: T) -> bool where
T: Into<i64>,
[src]
fn is_attribute<T>(&self, x: T) -> bool where
T: Into<i64>,
Return true if the provided entid identifies an attribute in this schema.
fn identifies_attribute(&self, x: &Keyword) -> bool
[src]
fn identifies_attribute(&self, x: &Keyword) -> bool
Return true if the provided ident identifies an attribute in this schema.
fn component_attributes(&self) -> &[i64]
[src]
fn component_attributes(&self) -> &[i64]
Implementors
impl<'a, 'c> HasSchema for InProgress<'a, 'c>