Skip to main content

TabLabel

Trait TabLabel 

Source
pub trait TabLabel: Copy + PartialEq {
    // Required method
    fn tab_label(&self) -> &str;
}
Expand description

Trait for tab enum types to provide their display label.

Implement this on your tab enum so TabBar can render it.

Required Methods§

Source

fn tab_label(&self) -> &str

Label displayed for this tab.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§