pub enum LinoValue {
Null,
Bool(bool),
Int(i64),
Float(f64),
String(String),
Array(Vec<LinoValue>),
Object(Vec<(String, LinoValue)>),
}Expand description
A value that can be encoded/decoded using the Links Notation codec.
This type supports all the types available in Python/JavaScript versions including special float values (NaN, Infinity) that are not valid JSON.
Variants§
Null
Null value
Bool(bool)
Boolean value
Int(i64)
Integer value (64-bit signed)
Float(f64)
Floating point value (64-bit)
String(String)
String value
Array(Vec<LinoValue>)
Array of values
Object(Vec<(String, LinoValue)>)
Object/dictionary with string keys
Implementations§
Source§impl LinoValue
impl LinoValue
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinoValue
impl RefUnwindSafe for LinoValue
impl Send for LinoValue
impl Sync for LinoValue
impl Unpin for LinoValue
impl UnsafeUnpin for LinoValue
impl UnwindSafe for LinoValue
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