freezable

Crates.iofreezable
lib.rsfreezable
version0.1.8
sourcesrc
created_at2023-03-12 15:03:38.892506
updated_at2023-03-19 11:38:00.739121
descriptionA library for immutable data.
homepagehttps://github.com/starwort/freezable
repositoryhttps://github.com/starwort/freezable
max_upload_size
id808077
size23,788
(Starwort)

documentation

https://docs.rs/freezable

README

freezable

freezable is a simple library for freezing data in Rust.

Objects which can be frozen implement the Freezable trait, which provides a freeze method. This returns a Frozen<T>, which wraps the frozen type. The Frozen<T> type implements all the comparison traits that T implements, as well as Index, Clone, and Debug, if the inner type implements them.

Why use this library?

The primary motivation for this library was frozen versions of HashMap and HashSet which support Hash. This allows them to be used as keys in other HashMaps and HashSets.

Commit count: 12

cargo fmt