pub struct DockPanel {
pub id: PanelId,
pub title: String,
pub icon: Option<char>,
pub content: Rc<dyn Fn() -> View>,
}Fields§
§id: PanelId§title: String§icon: Option<char>Material Symbol codepoint rendered in the tab strip instead of the
text title (icon + tooltip model; title stays the tooltip +
palette label).
content: Rc<dyn Fn() -> View>Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DockPanel
impl !Send for DockPanel
impl !Sync for DockPanel
impl !UnwindSafe for DockPanel
impl Forget for DockPanel
impl Freeze for DockPanel
impl Move for DockPanel
impl Unpin for DockPanel
impl UnsafeUnpin for DockPanelwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const RcInner<dyn Fn() -> View> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn() -> View>>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more