pub trait Mode:
Copy
+ Eq
+ Hash
+ Debug { }Expand description
Trait bound for editor-mode discriminators used as Keymap map keys.
Any Copy + Eq + Hash + Debug type satisfies this automatically via the
blanket impl — consumers define their own concrete enum (e.g. VimMode,
HelixMode) and no manual impl Mode for T is needed.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".