pub enum StateValue {
Record(BTreeMap<String, StateValue>),
Bool(bool),
Int(i64),
Float(f64),
Str(String),
List(Vec<StateValue>),
Map(BTreeMap<String, StateValue>),
Unset,
}Expand description
Session variable value (phase 2: the types the runtime understands).
Variants§
Record(BTreeMap<String, StateValue>)
Bool(bool)
Int(i64)
Float(f64)
§38.3: floating-point values (inferred from pattern captures, arithmetic results) — serialized as MsgPack f64 / JSON number
Str(String)
List(Vec<StateValue>)
§35: collections in session state
Map(BTreeMap<String, StateValue>)
Unset
Trait Implementations§
Source§impl Clone for StateValue
impl Clone for StateValue
Source§fn clone(&self) -> StateValue
fn clone(&self) -> StateValue
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 StateValue
impl Debug for StateValue
Source§impl From<FieldValue> for StateValue
impl From<FieldValue> for StateValue
Source§fn from(f: FieldValue) -> Self
fn from(f: FieldValue) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StateValue
impl PartialEq for StateValue
impl StructuralPartialEq for StateValue
Auto Trait Implementations§
impl Freeze for StateValue
impl RefUnwindSafe for StateValue
impl Send for StateValue
impl Sync for StateValue
impl Unpin for StateValue
impl UnsafeUnpin for StateValue
impl UnwindSafe for StateValue
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