pub fn patch2<R, A, B>(
target: fn(_: A, _: B) -> R,
func: fn(_: A, _: B) -> R
) -> PatchGuard
Expand description
Patch replaces a function with another. Accepts closures as replacement functions as long as they do not bind to the environment.