#[non_exhaustive]pub enum ToolKind {
Button,
Split,
Separator,
Fill,
}Expand description
What a toolbar entry is.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Button
An icon (and/or label) button: hit {id}:{key}.
Split
A button with a chevron beside it that opens its flyout: hits {id}:{key}
and {id}:{key}:menu.
Separator
A thin rule between groups.
Fill
Takes the free space: what follows sits at the far end (an end group).
Trait Implementations§
impl Copy for ToolKind
impl Eq for ToolKind
impl StructuralPartialEq for ToolKind
Auto Trait Implementations§
impl Forget for ToolKind
impl Freeze for ToolKind
impl Move for ToolKind
impl RefUnwindSafe for ToolKind
impl Send for ToolKind
impl Sync for ToolKind
impl Unpin for ToolKind
impl UnsafeUnpin for ToolKind
impl UnwindSafe for ToolKind
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