#[non_exhaustive]pub struct DockPanel {
pub id: String,
pub title: String,
pub icon: Option<IconName>,
pub closable: bool,
}Expand description
A panel of a DockArea: what it is called and whether it can close. What it shows comes from
the function given to the area, by its id.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringWhat identifies it, in the arrangement and in what is saved. It should never change.
title: StringWhat its tab says.
icon: Option<IconName>An icon before its title.
closable: boolIt has a way to close (on by default).
Implementations§
Trait Implementations§
impl StructuralPartialEq for DockPanel
Auto Trait Implementations§
impl Freeze for DockPanel
impl RefUnwindSafe for DockPanel
impl Send for DockPanel
impl Sync for DockPanel
impl Unpin for DockPanel
impl UnsafeUnpin for DockPanel
impl UnwindSafe for DockPanel
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