Function mentat_ffi::entity_builder_transact [] [src]

#[no_mangle]
pub unsafe extern "C" fn entity_builder_transact<'a, 'c>(
    builder: *mut EntityBuilder<InProgressBuilder<'a, 'c>>
) -> *mut InProgressTransactResult<'a, 'c>

Transacts all the assertions and retractions that have been performed using this builder.

This consumes the builder and returns the enclosed InProgress transaction inside the [InProgressTransactResult][::InProgressTransactResult] alongside the TxReport generated by the transact.

Safety

Callers are responsible for managing the memory for the return value. The destructors in_progress_destroy and tx_report_destroy are provided for releasing the memory for these pointer types.

TODO: Document the errors that can result from transact