trait_obj!() { /* proc-macro */ }Expand description
Convert into a CGlue compatible object.
The syntax is the same as a cast expression:
ⓘ
trait_obj!(variable as TraitName)It is possible to pass both owned objects and references.