Trait autocxx::subclass::CppSubclassSelfOwnedDefault
source · pub trait CppSubclassSelfOwnedDefault<CppPeer: CppSubclassCppPeer>: CppSubclassSelfOwned<CppPeer> + Default {
// Required method
fn default_self_owned() -> Rc<RefCell<Self>>;
}
Expand description
Provides default constructors for subclasses which implement Default
and are self-owning.
Required Methods§
sourcefn default_self_owned() -> Rc<RefCell<Self>>
fn default_self_owned() -> Rc<RefCell<Self>>
Create a self-owned instance of this subclass, initializing with default values. See
CppSubclass
for more details of the ownership models available.