Function guerrilla::patch1

source ·
pub fn patch1<R, A>(target: fn(_: A) -> R, func: fn(_: A) -> 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.