fn find_limit<T, F>(f: F) -> TExpand description
Internal algorithm of find_max() and find_min().
It works by performing f with a very large Duration onto
SaturatingTime::anchor() until this call returns None, in which case
this Duration gets halved. This process is repeated until f returns
None and the Duration has reached 1ns.
ยงAlgorithm
- Set
steptoINITIAL_STEPandrestoSaturatingTime::anchor(). - Call
f(&res, step).