Trait mentat::entity_builder::BuildTerms
[−]
[src]
pub trait BuildTerms where
Self: Sized, { fn named_tempid(&mut self, name: String) -> TempIdHandle; fn describe_tempid(self, name: &str) -> EntityBuilder<Self>; fn describe<E>(self, entity: E) -> EntityBuilder<Self>
where
E: IntoThing<KnownEntidOr<TempIdHandle>>; fn add<E, V>(&mut self, e: E, a: KnownEntid, v: V) -> Result<()>
where
E: IntoThing<KnownEntidOr<TempIdHandle>>,
V: IntoThing<TypedValueOr<TempIdHandle>>; fn retract<E, V>(&mut self, e: E, a: KnownEntid, v: V) -> Result<()>
where
E: IntoThing<KnownEntidOr<TempIdHandle>>,
V: IntoThing<TypedValueOr<TempIdHandle>>; }
Required Methods
fn named_tempid(&mut self, name: String) -> TempIdHandle
fn describe_tempid(self, name: &str) -> EntityBuilder<Self>
fn describe<E>(self, entity: E) -> EntityBuilder<Self> where
E: IntoThing<KnownEntidOr<TempIdHandle>>,
E: IntoThing<KnownEntidOr<TempIdHandle>>,
fn add<E, V>(&mut self, e: E, a: KnownEntid, v: V) -> Result<()> where
E: IntoThing<KnownEntidOr<TempIdHandle>>,
V: IntoThing<TypedValueOr<TempIdHandle>>,
E: IntoThing<KnownEntidOr<TempIdHandle>>,
V: IntoThing<TypedValueOr<TempIdHandle>>,
fn retract<E, V>(&mut self, e: E, a: KnownEntid, v: V) -> Result<()> where
E: IntoThing<KnownEntidOr<TempIdHandle>>,
V: IntoThing<TypedValueOr<TempIdHandle>>,
E: IntoThing<KnownEntidOr<TempIdHandle>>,
V: IntoThing<TypedValueOr<TempIdHandle>>,
Implementors
impl BuildTerms for TermBuilder
impl<'a, 'c> BuildTerms for InProgressBuilder<'a, 'c>