feat: define UniformSpace.ofFun (#2511) Forward-port leanprover-community/mathlib#18495
UniformSpace.ofFun