Struct mentat::entity_builder::EntityBuilder
[−]
[src]
pub struct EntityBuilder<T: BuildTerms + Sized> { /* fields omitted */ }
Methods
impl<T> EntityBuilder<T> where
T: BuildTerms,
[src]
impl<T> EntityBuilder<T> where
T: BuildTerms,
pub fn finish(self) -> (T, KnownEntidOr<TempIdHandle>)
[src]
pub fn finish(self) -> (T, KnownEntidOr<TempIdHandle>)
pub fn add<V>(&mut self, a: KnownEntid, v: V) -> Result<()> where
V: IntoThing<TypedValueOr<TempIdHandle>>,
[src]
pub fn add<V>(&mut self, a: KnownEntid, v: V) -> Result<()> where
V: IntoThing<TypedValueOr<TempIdHandle>>,
pub fn retract<V>(&mut self, a: KnownEntid, v: V) -> Result<()> where
V: IntoThing<TypedValueOr<TempIdHandle>>,
[src]
pub fn retract<V>(&mut self, a: KnownEntid, v: V) -> Result<()> where
V: IntoThing<TypedValueOr<TempIdHandle>>,
impl<'a, 'c> EntityBuilder<InProgressBuilder<'a, 'c>>
[src]
impl<'a, 'c> EntityBuilder<InProgressBuilder<'a, 'c>>
pub fn add_kw<V>(&mut self, a: &Keyword, v: V) -> Result<()> where
V: IntoThing<TypedValueOr<TempIdHandle>>,
[src]
pub fn add_kw<V>(&mut self, a: &Keyword, v: V) -> Result<()> where
V: IntoThing<TypedValueOr<TempIdHandle>>,
pub fn retract_kw<V>(&mut self, a: &Keyword, v: V) -> Result<()> where
V: IntoThing<TypedValueOr<TempIdHandle>>,
[src]
pub fn retract_kw<V>(&mut self, a: &Keyword, v: V) -> Result<()> where
V: IntoThing<TypedValueOr<TempIdHandle>>,
pub fn transact(self) -> (InProgress<'a, 'c>, Result<TxReport>)
[src]
pub fn transact(self) -> (InProgress<'a, 'c>, Result<TxReport>)
Build the terms from this builder and transact them against the current
InProgress
. This method always returns the InProgress
-- failure doesn't
imply an automatic rollback.
pub fn commit(self) -> Result<TxReport>
[src]
pub fn commit(self) -> Result<TxReport>
Transact the contents of the builder and commit the InProgress
. If any
step fails, roll back. Return the TxReport
.
Trait Implementations
Auto Trait Implementations
impl<T> !Send for EntityBuilder<T>
impl<T> !Send for EntityBuilder<T>
impl<T> !Sync for EntityBuilder<T>
impl<T> !Sync for EntityBuilder<T>