autocxx

Trait 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§

Required Methods§

Source

fn within_unique_ptr(self) -> UniquePtr<Self::Inner>

Create this item within a cxx::UniquePtr.

Implementors§

Source§

impl<N, T> WithinUniquePtr for N
where N: New<Output = T>, T: UniquePtrTarget + MakeCppStorage,

Source§

type Inner = T