1 2 3 4 5 6 7 8
use std::{cell::RefCell, rc::Rc}; pub trait Node { fn name(&self) -> &String; fn parent(&self) -> Option<Rc<RefCell<dyn Node>>>; fn toc_offset(&self) -> i64; fn path(&self) -> String; }