| Crates.io | tc-value |
| lib.rs | tc-value |
| version | 0.13.1 |
| created_at | 2021-02-21 02:00:13.808208+00 |
| updated_at | 2024-08-15 20:05:43.059343+00 |
| description | TinyChain's representation of a value which can be collated and stored. |
| homepage | |
| repository | https://github.com/haydnv/tinychain.git |
| max_upload_size | |
| id | 358307 |
| size | 78,346 |
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