pub trait ItemKey:
Clone
+ Eq
+ Hash
+ Debug
+ 'static { }Expand description
A stable, hashable identity for a row/node. Blanket-implemented for every
Clone + Eq + Hash + Debug + 'static type, so usize, NodeId, i64,
String, Uuid, … all qualify with no extra work.
In-memory models use positional keys (usize for ListModel, NodeId for
TreeModel); external sources use their own domain key (an entity id), which
is exactly what removes the need to mirror them into a built-in model.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".