pub struct CurrentState {
pub entities: BTreeMap<Id128, Entity>,
pub notes: BTreeMap<Id128, Note>,
pub edges: BTreeMap<Id128, Link>,
}Expand description
Live records read by the caller when staging a revert.
Each key must equal its record’s identifier. The caller supplies records in the same field representation as the staged operations; inversion does not normalize properties, tags, namespaces, or default values. Ordered maps keep this input deterministic on native and wasm32 targets.
See crates/khive-changeset/docs/api/invert.md for caller responsibilities.
Fields§
§entities: BTreeMap<Id128, Entity>Current entity records, keyed by their header identifiers.
notes: BTreeMap<Id128, Note>Current note records, keyed by their header identifiers.
edges: BTreeMap<Id128, Link>Current edge records, keyed by their edge identifiers.
Trait Implementations§
Source§impl Clone for CurrentState
impl Clone for CurrentState
Source§impl Debug for CurrentState
impl Debug for CurrentState
Auto Trait Implementations§
impl Freeze for CurrentState
impl RefUnwindSafe for CurrentState
impl Send for CurrentState
impl Sync for CurrentState
impl Unpin for CurrentState
impl UnsafeUnpin for CurrentState
impl UnwindSafe for CurrentState
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