#tinychain #scalar #value #collate

tc-value

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

22 releases (7 breaking)

0.8.0 Jan 15, 2023
0.7.0 Sep 14, 2022
0.6.0 May 30, 2022
0.4.0 Feb 4, 2022
0.1.4 Mar 10, 2021

#470 in Data structures

Download history 16/week @ 2022-12-02 58/week @ 2022-12-09 11/week @ 2022-12-16 28/week @ 2022-12-23 14/week @ 2022-12-30 18/week @ 2023-01-06 46/week @ 2023-01-13 25/week @ 2023-01-20 28/week @ 2023-01-27 59/week @ 2023-02-03 72/week @ 2023-02-10 130/week @ 2023-02-17 123/week @ 2023-02-24 22/week @ 2023-03-03 4/week @ 2023-03-10 14/week @ 2023-03-17

169 downloads per month
Used in 6 crates

Apache-2.0

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

~9–15MB
~263K SLoC