Consumes the context and returns the final outcome. # Example ```rust use atomic_core::crdt::apply::{ApplyContext, ApplyOptions}; let mut context = ApplyContext::new(ApplyOptions::default()); context.record_trunk_created(); let outcome = context.finish(); assert!(outcome.is_success()); ```
(self)
| 631 | /// assert!(outcome.is_success()); |
| 632 | /// ``` |
| 633 | pub fn finish(self) -> ApplyOutcome { |
| 634 | ApplyOutcome { |
| 635 | stats: self.stats, |
| 636 | conflicts: self.conflicts, |
| 637 | success: !self.failed, |
| 638 | failure_reason: self.failure_reason, |
| 639 | } |
| 640 | } |
| 641 | } |
| 642 | |
| 643 | // ApplyOutcome |
no outgoing calls