Introduce APIs with `MaybeUninit`
I have a need to create a heap-allocated data structure, which is too large to put on the stack.
A typical solution is to use `Arc::new_uninit()`, initialize it in-place and then call `Arc::assume_init()`.
Unfortunately, `rclite::Arc` is currently lacking such APIs.
关闭于 2025-11-14 4 条评论