Trait mentat_ffi::BuildTerms
[−]
[src]
pub trait BuildTerms { fn named_tempid(&mut self, name: String) -> Rc<TempId>; fn describe_tempid(self, name: &str) -> EntityBuilder<Self>; fn describe<E>(self, entity: E) -> EntityBuilder<Self>
where
E: IntoThing<Either<KnownEntid, Rc<TempId>>>; fn add<E, V>(
&mut self,
e: E,
a: KnownEntid,
v: V
) -> Result<(), MentatError>
where
E: IntoThing<Either<KnownEntid, Rc<TempId>>>,
V: IntoThing<Either<TypedValue, Rc<TempId>>>; fn retract<E, V>(
&mut self,
e: E,
a: KnownEntid,
v: V
) -> Result<(), MentatError>
where
E: IntoThing<Either<KnownEntid, Rc<TempId>>>,
V: IntoThing<Either<TypedValue, Rc<TempId>>>; }
Required Methods
fn named_tempid(&mut self, name: String) -> Rc<TempId>
fn describe_tempid(self, name: &str) -> EntityBuilder<Self>
fn describe<E>(self, entity: E) -> EntityBuilder<Self> where
E: IntoThing<Either<KnownEntid, Rc<TempId>>>,
E: IntoThing<Either<KnownEntid, Rc<TempId>>>,
fn add<E, V>(&mut self, e: E, a: KnownEntid, v: V) -> Result<(), MentatError> where
E: IntoThing<Either<KnownEntid, Rc<TempId>>>,
V: IntoThing<Either<TypedValue, Rc<TempId>>>,
E: IntoThing<Either<KnownEntid, Rc<TempId>>>,
V: IntoThing<Either<TypedValue, Rc<TempId>>>,
fn retract<E, V>(
&mut self,
e: E,
a: KnownEntid,
v: V
) -> Result<(), MentatError> where
E: IntoThing<Either<KnownEntid, Rc<TempId>>>,
V: IntoThing<Either<TypedValue, Rc<TempId>>>,
&mut self,
e: E,
a: KnownEntid,
v: V
) -> Result<(), MentatError> where
E: IntoThing<Either<KnownEntid, Rc<TempId>>>,
V: IntoThing<Either<TypedValue, Rc<TempId>>>,
Implementations on Foreign Types
impl BuildTerms for TermBuilder
[src]
impl BuildTerms for TermBuilder
fn named_tempid(&mut self, name: String) -> Rc<TempId>
[src]
fn named_tempid(&mut self, name: String) -> Rc<TempId>
fn describe_tempid(self, name: &str) -> EntityBuilder<TermBuilder>
[src]
fn describe_tempid(self, name: &str) -> EntityBuilder<TermBuilder>
fn describe<E>(self, entity: E) -> EntityBuilder<TermBuilder> where
E: IntoThing<Either<KnownEntid, Rc<TempId>>>,
[src]
fn describe<E>(self, entity: E) -> EntityBuilder<TermBuilder> where
E: IntoThing<Either<KnownEntid, Rc<TempId>>>,
fn add<E, V>(&mut self, e: E, a: KnownEntid, v: V) -> Result<(), MentatError> where
E: IntoThing<Either<KnownEntid, Rc<TempId>>>,
V: IntoThing<Either<TypedValue, Rc<TempId>>>,
[src]
fn add<E, V>(&mut self, e: E, a: KnownEntid, v: V) -> Result<(), MentatError> where
E: IntoThing<Either<KnownEntid, Rc<TempId>>>,
V: IntoThing<Either<TypedValue, Rc<TempId>>>,
fn retract<E, V>(
&mut self,
e: E,
a: KnownEntid,
v: V
) -> Result<(), MentatError> where
E: IntoThing<Either<KnownEntid, Rc<TempId>>>,
V: IntoThing<Either<TypedValue, Rc<TempId>>>,
[src]
fn retract<E, V>(
&mut self,
e: E,
a: KnownEntid,
v: V
) -> Result<(), MentatError> where
E: IntoThing<Either<KnownEntid, Rc<TempId>>>,
V: IntoThing<Either<TypedValue, Rc<TempId>>>,
Implementors
impl<'a, 'c> BuildTerms for InProgressBuilder<'a, 'c>