ListGetFn

Type Alias ListGetFn 

Source
pub type ListGetFn = unsafe fn(PtrConst, usize, &'static Shape) -> Option<PtrConst>;
Expand description

Get pointer to the element at index in the list, or None if the index is out of bounds.

The shape parameter is the list’s shape, allowing type-erased implementations to extract element size from shape.type_params[0].

§Safety

The list parameter must point to aligned, initialized memory of the correct type.