pub enum ActionValue {
Event(ActionOutcome),
Number(f64),
Series(Vec<f64>),
Bool(bool),
String(String),
}Variants§
Implementations§
Source§impl ActionValue
impl ActionValue
pub fn value_type(&self) -> ActionValueType
pub fn as_event(&self) -> Option<&ActionOutcome>
pub fn as_series(&self) -> Option<&Vec<f64>>
Trait Implementations§
Source§impl Clone for ActionValue
impl Clone for ActionValue
Source§fn clone(&self) -> ActionValue
fn clone(&self) -> ActionValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ActionValue
impl Debug for ActionValue
Source§impl PartialEq for ActionValue
impl PartialEq for ActionValue
Source§fn eq(&self, other: &ActionValue) -> bool
fn eq(&self, other: &ActionValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ActionValue
Auto Trait Implementations§
impl Freeze for ActionValue
impl RefUnwindSafe for ActionValue
impl Send for ActionValue
impl Sync for ActionValue
impl Unpin for ActionValue
impl UnsafeUnpin for ActionValue
impl UnwindSafe for ActionValue
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