Skip to main content

SortableLabel

Trait SortableLabel 

Source
pub trait SortableLabel {
    // Required method
    fn label(&self) -> &str;
}
Expand description

Optional supplementary trait for label-based sorting. Implementations that want Title-axis support implement both SortableDoc and SortableLabel.

Required Methods§

Source

fn label(&self) -> &str

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§