pub enum ParamKind {
Text,
FixedText,
Number,
Condition,
TextList,
Points,
FixedNumber,
Shortcut,
Window,
Flag,
Binding(BoundType),
Option(Options),
}Variants§
Text
Text that may change, such as "{count} left".
FixedText
Text written literally, without interpolation.
Number
An int that may change, such as item.percent.
Condition
A bool that may change, such as filter == "all".
TextList
A list of text, such as ["png", "jpg"].
Points
A size in points, written as a number.
FixedNumber
A whole number written literally, such as -10.
Shortcut
A keyboard shortcut written literally, such as "shift+n".
Window
A window’s name, such as settings.
Flag
true or false, written literally.
Binding(BoundType)
A two-way binding such as $draft.
Option(Options)
One of a fixed set of .name values.
Implementations§
Trait Implementations§
impl Copy for ParamKind
impl Eq for ParamKind
impl StructuralPartialEq for ParamKind
Auto Trait Implementations§
impl Freeze for ParamKind
impl RefUnwindSafe for ParamKind
impl Send for ParamKind
impl Sync for ParamKind
impl Unpin for ParamKind
impl UnsafeUnpin for ParamKind
impl UnwindSafe for ParamKind
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