#value #tiny-chain #scalar #collate #deserialize

tc-value

TinyChain's representation of a value which can be collated and stored

26 releases (11 breaking)

0.12.0 Jan 29, 2024
0.11.0 Dec 20, 2023
0.10.0 Nov 6, 2023
0.8.0 Jan 15, 2023
0.1.4 Mar 10, 2021

#381 in Data structures

Download history 4/week @ 2024-01-08 38/week @ 2024-01-29 9/week @ 2024-02-12 30/week @ 2024-02-19 54/week @ 2024-02-26 20/week @ 2024-03-04 25/week @ 2024-03-11 36/week @ 2024-03-18 10/week @ 2024-03-25 73/week @ 2024-04-01 47/week @ 2024-04-08 11/week @ 2024-04-15

146 downloads per month
Used in 11 crates

Apache-2.0

115KB
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

~15–20MB
~400K SLoC