pub enum ToolSettingKind {
Bool,
TriStateBool,
Text,
Path,
Select {
options: Vec<ToolSelectOption>,
},
Number {
min: f64,
max: f64,
step: f64,
},
ReadOnly,
}Expand description
Declarative field type for rendering per-tool settings in the UI.
Variants§
Trait Implementations§
Source§impl Clone for ToolSettingKind
impl Clone for ToolSettingKind
Source§fn clone(&self) -> ToolSettingKind
fn clone(&self) -> ToolSettingKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ToolSettingKind
impl Debug for ToolSettingKind
Source§impl PartialEq for ToolSettingKind
impl PartialEq for ToolSettingKind
Source§fn eq(&self, other: &ToolSettingKind) -> bool
fn eq(&self, other: &ToolSettingKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ToolSettingKind
Auto Trait Implementations§
impl Freeze for ToolSettingKind
impl RefUnwindSafe for ToolSettingKind
impl Send for ToolSettingKind
impl Sync for ToolSettingKind
impl Unpin for ToolSettingKind
impl UnsafeUnpin for ToolSettingKind
impl UnwindSafe for ToolSettingKind
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