pub trait MatchKey { // Required method fn match_key(&self, key: &Key) -> bool; }
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".