#tinychain

tc-value

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

16 releases

0.2.3 Nov 5, 2021
0.2.1 Sep 7, 2021
0.1.11 Jul 5, 2021
0.1.4 Mar 10, 2021

#212 in Data structures

Download history 30/week @ 2021-08-14 5/week @ 2021-08-21 1/week @ 2021-08-28 15/week @ 2021-09-04 9/week @ 2021-09-11 10/week @ 2021-09-18 9/week @ 2021-09-25 27/week @ 2021-10-02 26/week @ 2021-10-09 3/week @ 2021-10-16 4/week @ 2021-10-23 24/week @ 2021-10-30 24/week @ 2021-11-06 11/week @ 2021-11-20 5/week @ 2021-11-27

56 downloads per month
Used in 5 crates

Apache-2.0

120KB
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:

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

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

Dependencies

~6.5MB
~148K SLoC

3a