Crate capture_it

Source
Expand description

§Modern C++-ish closure macros.

This crate provides the capture macro, which implements C++11’s lambda-style capture functionality. It uses only a list of AST-parsable tokens, so it can be automatically formatted by rustfmt.

most of macro expressions are inspired* from the crate oliver-giersch/closure

Modules§

__sync_help

Macros§

capture
Generate a closure that captures specified variables, and captures all other unspecified variables by move.