#once-cell #cell #twice-cell

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

#11 in #once-cell

Download history 123/week @ 2025-01-14 9/week @ 2025-01-21 5/week @ 2025-02-04 7/week @ 2025-02-11

175 downloads per month
Used in portal-pc-koffle

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