pub trait Key: Any + Debug {
// Required methods
fn key_id(&self) -> KeyId;
fn eq_key(&self, other: &dyn Key) -> bool;
fn clone_box(&self) -> Box<dyn Key>;
fn as_any(&self) -> &dyn Any;
}Expand description
A type-erased identity used by widgets and reconciliation algorithms. Implementors should be immutable value types.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".