pub struct PaneTreeSnapshot {
pub schema_version: u16,
pub root: PaneId,
pub next_id: PaneId,
pub nodes: Vec<PaneNodeRecord>,
pub extensions: BTreeMap<String, String>,
}Expand description
Canonical serialized pane tree shape.
The extension maps are reserved for forward-compatible fields.
Fields§
§schema_version: u16§root: PaneId§next_id: PaneId§nodes: Vec<PaneNodeRecord>§extensions: BTreeMap<String, String>Implementations§
Source§impl PaneTreeSnapshot
impl PaneTreeSnapshot
Sourcepub fn canonicalize(&mut self)
pub fn canonicalize(&mut self)
Canonicalize node ordering by ID for deterministic serialization.
Sourcepub fn state_hash(&self) -> u64
pub fn state_hash(&self) -> u64
Deterministic hash for diagnostics over serialized tree state.
Sourcepub fn invariant_report(&self) -> PaneInvariantReport
pub fn invariant_report(&self) -> PaneInvariantReport
Inspect invariants and emit a structured diagnostics report.
Sourcepub fn repair_safe(self) -> Result<PaneRepairOutcome, PaneRepairError>
pub fn repair_safe(self) -> Result<PaneRepairOutcome, PaneRepairError>
Attempt deterministic safe repairs for recoverable invariant issues.
Safety guardrail: any unrepairable error in the pre-repair report causes this method to fail without modifying topology.
Trait Implementations§
Source§impl Clone for PaneTreeSnapshot
impl Clone for PaneTreeSnapshot
Source§fn clone(&self) -> PaneTreeSnapshot
fn clone(&self) -> PaneTreeSnapshot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PaneTreeSnapshot
impl Debug for PaneTreeSnapshot
Source§impl<'de> Deserialize<'de> for PaneTreeSnapshot
impl<'de> Deserialize<'de> for PaneTreeSnapshot
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
Source§impl PartialEq for PaneTreeSnapshot
impl PartialEq for PaneTreeSnapshot
Source§impl Serialize for PaneTreeSnapshot
impl Serialize for PaneTreeSnapshot
impl Eq for PaneTreeSnapshot
impl StructuralPartialEq for PaneTreeSnapshot
Auto Trait Implementations§
impl Freeze for PaneTreeSnapshot
impl RefUnwindSafe for PaneTreeSnapshot
impl Send for PaneTreeSnapshot
impl Sync for PaneTreeSnapshot
impl Unpin for PaneTreeSnapshot
impl UnsafeUnpin for PaneTreeSnapshot
impl UnwindSafe for PaneTreeSnapshot
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