pub struct ToolId(pub u64);Expand description
Stable, application-facing identifier of one toolbar tool.
The model never mints or reuses ids: applications own the values, and the
same id keeps referring to the same tool across ToolbarItem rebuilds
and reorders (set_toolbar_items), which is what lets an app map a
ToolActivated back to its own command without title matching.
Tuple Fields§
§0: u64Implementations§
Trait Implementations§
impl Copy for ToolId
impl Eq for ToolId
Source§impl Ord for ToolId
impl Ord for ToolId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for ToolId
impl PartialOrd for ToolId
impl StructuralPartialEq for ToolId
Auto Trait Implementations§
impl Forget for ToolId
impl Freeze for ToolId
impl Move for ToolId
impl RefUnwindSafe for ToolId
impl Send for ToolId
impl Sync for ToolId
impl Unpin for ToolId
impl UnsafeUnpin for ToolId
impl UnwindSafe for ToolId
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