Trait autocxx::WithinUniquePtr
source · pub trait WithinUniquePtr {
type Inner: UniquePtrTarget + MakeCppStorage;
// Required method
fn within_unique_ptr(self) -> UniquePtr<Self::Inner>;
}
Expand description
Provides utility functions to emplace any moveit::New
into a
cxx::UniquePtr
. Automatically imported by the autocxx prelude
and implemented by any (autocxx-related) moveit::New
.
Required Associated Types§
type Inner: UniquePtrTarget + MakeCppStorage
Required Methods§
sourcefn within_unique_ptr(self) -> UniquePtr<Self::Inner>
fn within_unique_ptr(self) -> UniquePtr<Self::Inner>
Create this item within a cxx::UniquePtr
.