pub struct EntityBuilder<T>where
T: BuildTerms,{ /* private fields */ }Implementations§
Source§impl<T> EntityBuilder<T>where
T: BuildTerms,
impl<T> EntityBuilder<T>where
T: BuildTerms,
pub fn finish(self) -> (T, EntityPlace<TypedValue>)
pub fn add<A, V>(&mut self, a: A, v: V) -> Result<(), MentatError>
pub fn retract<A, V>(&mut self, a: A, v: V) -> Result<(), MentatError>
Source§impl<'a, 'c> EntityBuilder<InProgressBuilder<'a, 'c>>
impl<'a, 'c> EntityBuilder<InProgressBuilder<'a, 'c>>
Sourcepub fn transact(self) -> (InProgress<'a, 'c>, Result<TxReport, MentatError>)
pub fn transact(self) -> (InProgress<'a, 'c>, Result<TxReport, MentatError>)
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.
Sourcepub fn commit(self) -> Result<TxReport, MentatError>
pub fn commit(self) -> Result<TxReport, MentatError>
Transact the contents of the builder and commit the InProgress. If any
step fails, roll back. Return the TxReport.
Auto Trait Implementations§
impl<T> !Freeze for EntityBuilder<T>
impl<T> RefUnwindSafe for EntityBuilder<T>where
T: RefUnwindSafe,
impl<T> Send for EntityBuilder<T>where
T: Send,
impl<T> Sync for EntityBuilder<T>where
T: Sync,
impl<T> Unpin for EntityBuilder<T>where
T: Unpin,
impl<T> UnsafeUnpin for EntityBuilder<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for EntityBuilder<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more