pub struct ToolInfo {
pub key: &'static str,
pub label: &'static str,
pub doc: &'static str,
pub icon: Option<&'static str>,
}Expand description
What a tool is to an editor: the key it is taken in hand by
(crate::editor::Command::Tool), and how it is offered. A tool is no
operation, so it is offered where the inspectors are — beside what asks
about the part — not among the operations a step can be.
Fields§
§key: &'static str§label: &'static str§doc: &'static str§icon: Option<&'static str>What it is shown as: SVG on a 20 × 20 grid, as an operation’s icon.
Trait Implementations§
impl StructuralPartialEq for ToolInfo
Auto Trait Implementations§
impl Freeze for ToolInfo
impl RefUnwindSafe for ToolInfo
impl Send for ToolInfo
impl Sync for ToolInfo
impl Unpin for ToolInfo
impl UnsafeUnpin for ToolInfo
impl UnwindSafe for ToolInfo
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