23 releases (9 breaking)

0.10.0 Jan 29, 2024
0.9.0 Dec 20, 2023
0.8.1 Nov 6, 2023
0.6.0 Jan 15, 2023
0.1.2 Mar 31, 2021

#1324 in Data structures

Download history 76/week @ 2023-12-17 9/week @ 2023-12-24 3/week @ 2024-01-07 1/week @ 2024-01-14 38/week @ 2024-01-28 3/week @ 2024-02-04 8/week @ 2024-02-11 28/week @ 2024-02-18 59/week @ 2024-02-25 18/week @ 2024-03-03 32/week @ 2024-03-10 30/week @ 2024-03-17 16/week @ 2024-03-24 384/week @ 2024-03-31

468 downloads per month
Used in 12 crates

Apache-2.0

39KB
954 lines

This crate is used internally by TinyChain. It provides generic Id, Map, and Tuple types.

Example:

use safecast::TryCastFrom;
use tcgeneric::{Id, Map, Tuple};

let tuple = Tuple::<(Id, String)>::from_iter(vec![]);
assert_eq!(Map::opt_cast_from(tuple).unwrap(), Map::default());

For more information on TinyChain, see: http://github.com/haydnv/tinychain


lib.rs:

Provides generic data types used across multiple TinyChain sub-crates.

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

Dependencies

~12–17MB
~340K SLoC