Trait Keyed

Source
pub trait Keyed: Sortable + MaybeDisplay { }
Expand description

Persistable runtime value representing a stable identity/key.

Extends Sortable and [MaybeDisplay] to indicate the value is not only deterministically orderable but also suitable for human-readable identity representation (e.g. hashes, IDs, or addresses) in logs, events, and UIs.

This trait conveys role semantics rather than additional structural bounds: the type behaves as a uniquely distinguishable identity that can be consistently compared across deterministic execution and meaningfully displayed when surfaced externally.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> Keyed for T
where T: Sortable + MaybeDisplay,