pub struct SerNode {
pub parent: Option<u32>,
pub children: Vec<u32>,
pub last_child: Option<u32>,
pub delta: Option<Delta>,
pub cursor: (u32, u32),
pub timestamp_unix_ms: u64,
pub marks: MarkSnapshot,
pub seq: u64,
}Expand description
One node of the serialized undo tree. Mirrors [UndoNode] minus the
runtime-only materialization cache; ids are dense indices into
SerTree::nodes.
Fields§
§parent: Option<u32>Parent index, None only for the root.
children: Vec<u32>Child indices (order preserved; > 1 ⇒ branch point).
last_child: Option<u32><C-r> target child index.
delta: Option<Delta>Reversible edge delta from the parent, None only for the root.
cursor: (u32, u32)Post-state cursor (row, col).
timestamp_unix_ms: u64Wall-clock creation time, ms since the UNIX epoch.
marks: MarkSnapshotMarks / jumplist / changelist snapshot.
seq: u64Global monotonic change number.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SerNode
impl<'de> Deserialize<'de> for SerNode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SerNode
impl RefUnwindSafe for SerNode
impl Send for SerNode
impl Sync for SerNode
impl Unpin for SerNode
impl UnsafeUnpin for SerNode
impl UnwindSafe for SerNode
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