Performs a binary search for a specified item within a sorted array. This function can handle both ascending and descending ordered arrays. It takes a reference to the item to search for and a slice of the array. If the item is found, it returns the index of the item within the array. If the item is not found, it returns `None`. # Parameters - `item`: A reference to the item to search for. - `a
(item: &T, arr: &[T])
source not stored for this graph (policy: none)
nothing calls this directly
no test coverage detected