Skip to main content

BuildTerms

Trait BuildTerms 

Source
pub trait BuildTerms: Sized {
    // Required methods
    fn named_tempid<I>(&mut self, name: I) -> Arc<TempId> ⓘ
       where I: Into<String>;
    fn describe_tempid(self, name: &str) -> EntityBuilder<Self>;
    fn describe<E>(self, entity: E) -> EntityBuilder<Self>
       where E: Into<EntityPlace<TypedValue>>;
    fn add<E, A, V>(&mut self, e: E, a: A, v: V) -> Result<(), MentatError>
       where E: Into<EntityPlace<TypedValue>>,
             A: Into<AttributePlace>,
             V: Into<ValuePlace<TypedValue>>;
    fn retract<E, A, V>(&mut self, e: E, a: A, v: V) -> Result<(), MentatError>
       where E: Into<EntityPlace<TypedValue>>,
             A: Into<AttributePlace>,
             V: Into<ValuePlace<TypedValue>>;
}

Required Methods§

Source

fn named_tempid<I>(&mut self, name: I) -> Arc<TempId> ⓘ
where I: Into<String>,

Source

fn describe_tempid(self, name: &str) -> EntityBuilder<Self>

Source

fn describe<E>(self, entity: E) -> EntityBuilder<Self>

Source

fn add<E, A, V>(&mut self, e: E, a: A, v: V) -> Result<(), MentatError>

Source

fn retract<E, A, V>(&mut self, e: E, a: A, v: V) -> Result<(), MentatError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§