pub trait TreeRecord {
// Required methods
fn owner_index(&self) -> i32;
fn set_owner_index(&mut self, index: i32);
}Expand description
A trait for records that can participate in a tree structure.
Records must provide their owner index (parent reference) to build the tree relationships.
Required Methods§
Sourcefn owner_index(&self) -> i32
fn owner_index(&self) -> i32
Get the owner index (parent reference). Returns the index of the parent record, or a negative value for root records.
Sourcefn set_owner_index(&mut self, index: i32)
fn set_owner_index(&mut self, index: i32)
Set the owner index.
Implementors§
impl TreeRecord for SchRecord
TreeRecord implementation for SchRecord enables tree structure support.