Expand description
A prelude containing all the traits and macros required to create Rust subclasses of C++ classes. It’s recommended that you:
use autocxx::subclass::prelude::*;
Re-exports§
pub use super::CppPeerConstructor;
pub use super::CppSubclass;
pub use super::CppSubclassDefault;
pub use super::CppSubclassRustPeerHolder;
pub use super::CppSubclassSelfOwned;
pub use super::CppSubclassSelfOwnedDefault;
Attribute Macros§
- Deprecated - use
subclass
instead. Attribute to state that a Ruststruct
is a C++ subclass. This adds an additional field to the struct which autocxx uses to track a C++ instantiation of this Rust subclass. - Declare a Rust subclass of a C++ class. You can use this in two ways: