Sorts the given array using heap sort algorithm. This function sorts the array either in ascending or descending order based on the `ascending` parameter. # Arguments `arr` - A mutable reference to the array to be sorted. `ascending` - A boolean indicating whether to sort in ascending order (`true`) or descending order (`false`).
(arr: &mut [T], ascending: bool)
source not stored for this graph (policy: none)
nothing calls this directly
no test coverage detected