2 releases

0.1.1 Mar 7, 2023
0.1.0 Mar 7, 2023

#7 in #can-t


Used in family

MIT/Apache

4KB

Family - I can't believe it's not HKT!

⚠️ This crate's any module uses unsafe code that has not been properly audited for soundness.

A small family pattern implementation, implementing "associated type constructors". Additionally provides some dynamic casting utilities that make use of families and members.

See this post for more information: http://smallcultfollowing.com/babysteps/blog/2016/11/03/associated-type-constructors-part-2-family-traits/

Crates

  • Crates.io docs.rs
  • Crates.io docs.rs

License

Licensed under either of

at your option.

Dependencies

~1.5MB
~32K SLoC