pub trait DockingTab: Sized {
type Context;
// Required methods
fn title(&self) -> String;
fn render(&mut self, ui: &mut UI<'_, '_>, context: &mut Self::Context);
fn add_tab_dropdown<F: FnMut(Self)>(
ui: &mut UI<'_, '_>,
add_tab: F,
context: &mut Self::Context,
);
}Required Associated Types§
Required Methods§
fn title(&self) -> String
fn render(&mut self, ui: &mut UI<'_, '_>, context: &mut Self::Context)
fn add_tab_dropdown<F: FnMut(Self)>( ui: &mut UI<'_, '_>, add_tab: F, context: &mut Self::Context, )
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.