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
ObjectCorefor 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 withrs_objectinstead. - Object
Ref - Declare an object reference: the managed, reference-counted handle to an
object type, as
Arc<FooObj>is toFooObj.