MCPcopy Create free account
hub / github.com/ImageOptim/libimagequant / box_assume_init

Function box_assume_init

src/rows.rs:282–284  ·  view source on GitHub ↗
(s: Box<[MaybeUninit<T>]>)

Source from the content-addressed store, hash-verified

280
281#[inline(always)]
282unsafe fn box_assume_init<T>(s: Box<[MaybeUninit<T>]>) -> Box<[T]> {
283 std::mem::transmute(s)
284}
285
286#[inline(always)]
287unsafe fn slice_assume_init_mut<T>(s: &mut [MaybeUninit<T>]) -> &mut [T] {

Callers 1

prepare_iterMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected