Skip to main content

Module derive

Module derive 

Source
Expand description

The derive macros of object types and object references.

Derive Macrosยง

Object
Bind an object type that another library, usually C++, registers: derive ObjectCore for a #[repr(C)] object struct whose first field is its parent, so that a pointer to the object is one to its parent. Define a new type in Rust with rs_object instead.
ObjectRef
Declare an object reference: the managed, reference-counted handle to an object type, as Arc<FooObj> is to FooObj.