Trait SortedOutputExt

Source
pub trait SortedOutputExt {
    type Sorted<'a>
       where Self: 'a;

    // Required method
    fn sorted_debug(&self) -> Self::Sorted<'_>;
}
Expand description

An extension trait for easier production of SortedHashMapDebugOutput values

This trait is generic because it may be extended in future versions of the crate, but for now it only applies to HashMap.

Required Associated Types§

Source

type Sorted<'a> where Self: 'a

The target type

Required Methods§

Source

fn sorted_debug(&self) -> Self::Sorted<'_>

A method which borrows self as the given target

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.

Implementations on Foreign Types§

Source§

impl<K, V> SortedOutputExt for HashMap<K, V>

Source§

type Sorted<'a> = SortedHashMapDebugOutput<'a, K, V> where Self: 'a

Source§

fn sorted_debug(&self) -> Self::Sorted<'_>

Implementors§