pub enum ControlValue {
None,
Bool(bool),
Int(i32),
Uint(u32),
Float(f32),
}Expand description
Control value variants with minimal footprint.
§Example
use styx_core::prelude::ControlValue;
let v = ControlValue::Bool(true);
assert_eq!(v, ControlValue::Bool(true));Variants§
None
No value.
Bool(bool)
Boolean value.
Int(i32)
Signed integer.
Uint(u32)
Unsigned integer.
Float(f32)
Floating-point value.
Trait Implementations§
Source§impl Clone for ControlValue
impl Clone for ControlValue
Source§fn clone(&self) -> ControlValue
fn clone(&self) -> ControlValue
Returns a duplicate of the value. Read more
1.0.0 · 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 ControlValue
impl Debug for ControlValue
Source§impl PartialEq for ControlValue
impl PartialEq for ControlValue
impl StructuralPartialEq for ControlValue
Auto Trait Implementations§
impl Freeze for ControlValue
impl RefUnwindSafe for ControlValue
impl Send for ControlValue
impl Sync for ControlValue
impl Unpin for ControlValue
impl UnwindSafe for ControlValue
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