pub trait SidebarItem: Collapsible + Clone {
// Required method
fn render(
self,
id: impl Into<ElementId>,
window: &mut Window,
cx: &mut App,
) -> impl IntoElement;
}Required Methods§
fn render( self, id: impl Into<ElementId>, window: &mut Window, cx: &mut App, ) -> impl IntoElement
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".