Skip to main content

Keyed

Trait Keyed 

Source
pub trait Keyed: Element + Sealed<Key = Value, Measure = Meta> {
    // Provided method
    fn sort_key(&self) -> &Value { ... }
}
Expand description

An element kept in key order: a dictionary’s entry, or a set’s member.

Provided Methods§

Source

fn sort_key(&self) -> &Value

Returns the key it is sorted by.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Keyed for (Value, Value)

Implementors§