pub fn bimodal_array<T>(data: Vec<T>) -> (ArrayHandle<T>, Vec<ElementHandle<T>>)Expand description
Constructs a bimodal array from an owned Vec<T>.
This is a convenience wrapper around try_bimodal_array that panics on
error. Prefer try_bimodal_array if construction failure should be
handled gracefully.
ยงPanics
Panics if try_bimodal_array returns an error (e.g. unsupported length or
allocation failure).