[][src]Function rayon_logs::custom_subgraph

pub fn custom_subgraph<OP, R, START, END, S>(
    tag: &'static str,
    start: START,
    end: END,
    op: OP
) -> R where
    OP: FnOnce() -> R,
    START: FnOnce() -> S,
    END: FnOnce(S) -> usize

Tag a subgraph with a custom value. The start function will be called just before running the graph and produce an S. The end function will be called just after running the graph on this S and produce a usize which will the be stored for display.