Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support slices in
OnceRef
and OnceBox
This is implemented through a new public-in-private `OncePointee` trait. If this was instead done with `impl OnceRef<[T]>`, the compiler fails to infer which methods we want to use. Because of the usage of `core::ptr::slice_from_raw_parts` in `const`, this change increases the MSRV to `1.64.0`.
- Loading branch information