pub enum TriggerValue {
Number(f64),
Series(Vec<f64>),
Bool(bool),
Event(TriggerEvent),
}Variants§
Implementations§
Source§impl TriggerValue
impl TriggerValue
pub fn value_type(&self) -> TriggerValueType
pub fn as_number(&self) -> Option<f64>
pub fn as_bool(&self) -> Option<bool>
pub fn as_event(&self) -> Option<&TriggerEvent>
Trait Implementations§
Source§impl Clone for TriggerValue
impl Clone for TriggerValue
Source§fn clone(&self) -> TriggerValue
fn clone(&self) -> TriggerValue
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 TriggerValue
impl Debug for TriggerValue
Source§impl PartialEq for TriggerValue
impl PartialEq for TriggerValue
Source§fn eq(&self, other: &TriggerValue) -> bool
fn eq(&self, other: &TriggerValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TriggerValue
Auto Trait Implementations§
impl Freeze for TriggerValue
impl RefUnwindSafe for TriggerValue
impl Send for TriggerValue
impl Sync for TriggerValue
impl Unpin for TriggerValue
impl UnsafeUnpin for TriggerValue
impl UnwindSafe for TriggerValue
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