Sets implemented in the rust type-system.
This crate allows you to create sets of types in the rust type-system. These sets can be compared using [SubsetOf
] and [SupersetOf
].
This library was developed for use in meslin
, but is general enough that there might be other purposes as well.
Example
use *;
// We can define functions, that may only be called if the parameter `T` is
// a subset or superset of another set.
>
>
// We can also use custom structs as sets
;