#once-cell #value #twice #set

twice-cell

Like once-cell, except you set the value twice

2 releases

0.1.1 Jan 16, 2025
0.1.0 Sep 13, 2024

#871 in Data structures

Download history 9/week @ 2024-10-02 3/week @ 2024-12-04 8/week @ 2024-12-11 132/week @ 2025-01-15

132 downloads per month

MIT/Apache

37KB
428 lines

twice-cell

It's like once-cell, except you set the value twice.

Contributing

I don't actually use this crate, since I figured out in the course of building it that I could just use a different pattern with OnceCell. Go figure! I'm still happy to accept pull requests, however, and will respond to issues while they exist in my github inbox.

In particular, I don't really remember most of the implementation details of this crate. I know I tried halfheartedly to add a new nightly feature, but since I gave up on that it wound up just being more noise for the already overworked rust maintainers. Sorry!

License

Licensed under Apache 2.0 or MIT, at your option.

Dependencies

~205KB