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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".