Crates.io | tcgeneric |
lib.rs | tcgeneric |
version | 0.11.0 |
source | src |
created_at | 2021-02-21 01:26:03.450255 |
updated_at | 2024-08-14 00:06:00.214223 |
description | Generic data types used internally by TinyChain |
homepage | |
repository | https://github.com/haydnv/tinychain.git |
max_upload_size | |
id | 358293 |
size | 25,179 |
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