1
2
3
4
5
6
7
use std::any::Any;

pub trait Node: Any {
    fn children(&self) -> Vec<&dyn Node> {
        vec![]
    }
}