DistanceAccessor<T> typedef
DistanceAccessor<T> =
double Function(T item)
function typse used to access the distance field that contains the distance to the target inside the generic type
Implementation
typedef DistanceAccessor<T> = double Function(T item);