19 unstable releases (5 breaking)

0.6.0 Jan 15, 2023
0.5.0 May 30, 2022
0.4.0 Apr 15, 2022
0.3.0 Feb 4, 2022
0.1.2 Mar 31, 2021

#322 in Data structures

Download history 45/week @ 2022-11-30 93/week @ 2022-12-07 11/week @ 2022-12-14 32/week @ 2022-12-21 30/week @ 2022-12-28 3/week @ 2023-01-04 58/week @ 2023-01-11 28/week @ 2023-01-18 28/week @ 2023-01-25 81/week @ 2023-02-01 61/week @ 2023-02-08 137/week @ 2023-02-15 165/week @ 2023-02-22 13/week @ 2023-03-01 15/week @ 2023-03-08 16/week @ 2023-03-15

284 downloads per month
Used in 7 crates

Apache-2.0

51KB
1.5K SLoC

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

~5–10MB
~187K SLoC