pub trait ParentKind: Copy { // Required method fn set_index(&mut self, index: usize); }
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".