binius_core::merkle_tree_vcs

Function slice_assume_init_mut

source
pub const unsafe fn slice_assume_init_mut<T>(
    slice: &mut [MaybeUninit<T>],
) -> &mut [T]
Expand description

This can be removed when MaybeUninit::slice_assume_init_mut is stabilized https://github.com/rust-lang/rust/issues/63569

ยงSafety

It is up to the caller to guarantee that the MaybeUninit<T> elements really are in an initialized state. Calling this when the content is not yet fully initialized causes undefined behavior.

See assume_init_mut for more details and examples.