pub enum Value {
String(String),
Int(i64),
Float(f64),
Bool(bool),
}Expand description
An evaluable scalar value. OMG allows more types (char, etc.) — we deliberately map narrowly to the most common cases here.
Variants§
String(String)
String literal or string field.
Int(i64)
Signed 64-bit integer (maps Rust i8..i64 + u8..u32).
Float(f64)
Double precision (for f32 + f64 fields).
Bool(bool)
Boolean.
Trait Implementations§
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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