pub trait Tab {
const NAME: &'static str;
const ICON: &'static str = "๐ณ";
// Required method
fn main_display(&mut self, world: &mut World, ui: &mut Ui);
// Provided methods
fn edit_display(&mut self, _world: &mut World, ui: &mut Ui) { ... }
fn display_display(&mut self, _world: &mut World, ui: &mut Ui) { ... }
fn export_display(&mut self, _world: &mut World, ui: &mut Ui) { ... }
fn title(&self) -> WidgetText { ... }
fn on_tab_button(&self, world: &mut World, response: &Response) { ... }
fn id(&self) -> Id { ... }
fn scroll_bars(&self) -> [bool; 2] { ... }
}Required Associated Constantsยง
Provided Associated Constantsยง
Required Methodsยง
Sourcefn main_display(&mut self, world: &mut World, ui: &mut Ui)
fn main_display(&mut self, world: &mut World, ui: &mut Ui)
The main display of the tab.
Provided Methodsยง
fn edit_display(&mut self, _world: &mut World, ui: &mut Ui)
fn display_display(&mut self, _world: &mut World, ui: &mut Ui)
fn export_display(&mut self, _world: &mut World, ui: &mut Ui)
fn title(&self) -> WidgetText
fn id(&self) -> Id
fn scroll_bars(&self) -> [bool; 2]
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.