Skip to main content

SidebarItem

Trait SidebarItem 

Source
pub trait SidebarItem: Collapsible + Clone {
    // Required method
    fn render(
        self,
        id: impl Into<ElementId>,
        window: &mut Window,
        cx: &mut App,
    ) -> impl IntoElement;
}

Required Methods§

Source

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".

Implementors§