pub enum ParamType {
Bool {
default: bool,
},
Float {
min: f64,
max: f64,
default: f64,
},
Choice {
choices: &'static [&'static str],
default_index: usize,
},
}Expand description
Parameter type variants for programmatic declaration.
Variants§
Bool
Boolean parameter (on/off toggle).
Float
Float parameter with range.
Choice
Choice parameter (dropdown/enum).
Trait Implementations§
impl StructuralPartialEq for ParamType
Auto Trait Implementations§
impl Freeze for ParamType
impl RefUnwindSafe for ParamType
impl Send for ParamType
impl Sync for ParamType
impl Unpin for ParamType
impl UnwindSafe for ParamType
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