Function guerrilla::patch6

source ·
pub fn patch6<R, A, B, C, D, E, F>(
    target: fn(_: A, _: B, _: C, _: D, _: E, _: F) -> R,
    func: fn(_: A, _: B, _: C, _: D, _: E, _: F) -> 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.