Attribute Macro cglue::return_wrap[][src]

#[return_wrap]
Expand description

Specify return type conversion with a closure.

Arguments

A closure that accepts original return value and outputs the defined type.

If the return type is a reference to the associated type, ret_tmp value is available for use to write the intermediate value into.