[][src]Function adapton::engine::thunk_map

pub fn thunk_map<Res1: Hash + Eq + Debug + Clone + 'static, Res2: Hash + Eq + Debug + Clone + 'static>(
    thunk: Art<Res1>,
    map_fn: Rc<dyn Fn(Res1) -> Res2>
) -> Art<Res2>

Map a given thunk by a mapping function map_fn, yielding a new thunk.

Under the hood, this operation is "cheap" (but sound), in that it uses a "naive", native Rust thunk that does not cache its output, or represent itself in the trace.