pub enum OptionValue {
Str(String),
Bool(bool),
Int(i64),
}Expand description
A scalar option value handed to ConstructorBuilder::set_option. Both
front-ends produce these (the macro from a literal, Rhai from a Dynamic),
so the key→field switch is single-source.
Variants§
Implementations§
Source§impl OptionValue
impl OptionValue
Auto Trait Implementations§
impl Freeze for OptionValue
impl RefUnwindSafe for OptionValue
impl Send for OptionValue
impl Sync for OptionValue
impl Unpin for OptionValue
impl UnsafeUnpin for OptionValue
impl UnwindSafe for OptionValue
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