Trait cxx_qt_lib::ToUniquePtr
source · [−]pub trait ToUniquePtr {
type CppType;
fn to_unique_ptr(self) -> UniquePtr<Self::CppType>
where
Self::CppType: UniquePtrTarget;
}
Required Associated Types
Required Methods
fn to_unique_ptr(self) -> UniquePtr<Self::CppType> where
Self::CppType: UniquePtrTarget,
Implementations on Foreign Types
sourceimpl ToUniquePtr for &String
impl ToUniquePtr for &String
sourcefn to_unique_ptr(self) -> UniquePtr<QStringCpp>
fn to_unique_ptr(self) -> UniquePtr<QStringCpp>
Retrieve the UniquePtr to the Qt QStringCpp of this Rust String so that this object can be passed back to C++.
type CppType = QString
sourceimpl ToUniquePtr for &str
impl ToUniquePtr for &str
sourcefn to_unique_ptr(self) -> UniquePtr<QStringCpp>
fn to_unique_ptr(self) -> UniquePtr<QStringCpp>
Retrieve the UniquePtr to the Qt QStringCpp of this Rust &str so that this object can be passed back to C++.