#tinychain

tc-value

TinyChain’s representation of a value which can be collated and stored. Unstable.

19 releases (4 breaking)

0.5.0 Apr 15, 2022
0.4.0 Feb 4, 2022
0.3.1 Dec 8, 2021
0.2.3 Nov 5, 2021
0.1.4 Mar 10, 2021

#440 in Data structures

Download history 35/week @ 2022-02-05 30/week @ 2022-02-12 32/week @ 2022-02-19 40/week @ 2022-02-26 24/week @ 2022-03-05 47/week @ 2022-03-12 74/week @ 2022-03-19 4/week @ 2022-03-26 13/week @ 2022-04-02 41/week @ 2022-04-09 31/week @ 2022-04-16 51/week @ 2022-04-23 140/week @ 2022-04-30 151/week @ 2022-05-07 331/week @ 2022-05-14 73/week @ 2022-05-21

714 downloads per month
Used in less than 6 crates

Apache-2.0

125KB
3.5K 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:

Provides a generic scalar [Value] enum which supports collation.

This library is part of TinyChain: http://github.com/haydnv/tinychain

Dependencies

~7.5MB
~159K SLoC