#[non_exhaustive]pub struct DockPanel {
pub title: String,
pub key: Option<String>,
}Expand description
What a dock shows for a panel: its tab’s title and, for saving and restoring workspaces, a key that stays the same across runs (widget ids do not, and titles need not be unique).
&str and String convert into a DockPanel with that title and no key.
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.title: StringThe tab’s title.
key: Option<String>The application’s name for the panel, such as "orders".
Implementations§
Trait Implementations§
impl Eq for DockPanel
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