Trait Sortable

Source
pub trait Sortable:
    Storable
    + Ord
    + MaxEncodedLen
    + DecodeWithMemTracking { }
Expand description

Persistable, orderable, strictly bounded type for multi-instance comparison.

Builds on Storable and [MaxEncodedLen] while adding Ord to enable deterministic total ordering when multiple values coexist or are compared across execution paths.

Suitable for keys, sorted collections, and deduplication logic where stable ordering across nodes is required.

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> Sortable for T
where T: Storable + Ord + MaxEncodedLen + DecodeWithMemTracking,