[][src]Attribute Macro serde_closure::desugar

#[desugar]

Attribute macro that can be applied to items to desugar trait bounds FnOnce(…) -> …, FnMut(…) -> … and Fn(…) -> … to FnOnce<(…), Output = …>, FnMut<(…), Output = …> and Fn<(…), Output = …>. This is just a convenience to enable parenthesized arguments for non std::ops::* traits on stable Rust.

See tests/stable.rs for examples.