28 releases
0.13.1 | Aug 15, 2024 |
---|---|
0.12.0 | Jan 29, 2024 |
0.11.0 | Dec 20, 2023 |
0.10.0 | Nov 6, 2023 |
0.1.4 | Mar 10, 2021 |
#293 in Data structures
Used in 12 crates
125KB
3K
SLoC
This crate is used internally by TinyChain. It provides a generic Value type which supports (de)serialization with serde and destream as well as equality and collation.
Example:
use safecast::CastFrom;
use tcgeneric::Tuple;
let row = Value::cast_from(("name", 12345));
assert_eq!(row, Value::Tuple(Tuple::from(vec![Value::String("name"), Value::Number(12345.into())])));
For more information on TinyChain, see http://github.com/haydnv/tinychain
lib.rs
:
A generic scalar Value
enum which supports collation.
Dependencies
~8–11MB
~211K SLoC