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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more