pub enum ConditionValue {
Str(String),
Int(i64),
Float(f64),
Bool(bool),
Null,
}Expand description
A value that can appear in condition evaluations.
Variants§
Str(String)
A string value.
Int(i64)
An integer value.
Float(f64)
A floating-point value.
Bool(bool)
A boolean value.
Null
No value / null.
Implementations§
Source§impl ConditionValue
impl ConditionValue
Sourcepub fn to_string_repr(&self) -> String
pub fn to_string_repr(&self) -> String
Convert to a string representation.
Trait Implementations§
Source§impl Clone for ConditionValue
impl Clone for ConditionValue
Source§fn clone(&self) -> ConditionValue
fn clone(&self) -> ConditionValue
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 ConditionValue
impl Debug for ConditionValue
Source§impl PartialEq for ConditionValue
impl PartialEq for ConditionValue
impl StructuralPartialEq for ConditionValue
Auto Trait Implementations§
impl Freeze for ConditionValue
impl RefUnwindSafe for ConditionValue
impl Send for ConditionValue
impl Sync for ConditionValue
impl Unpin for ConditionValue
impl UnsafeUnpin for ConditionValue
impl UnwindSafe for ConditionValue
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