Skip to main content

TreeRecord

Trait TreeRecord 

Source
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§

Source

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.

Source

fn set_owner_index(&mut self, index: i32)

Set the owner index.

Implementors§

Source§

impl TreeRecord for SchRecord

TreeRecord implementation for SchRecord enables tree structure support.