Struct qmetaobject::QObjectPinned
source · [−]Expand description
A reference to a RefCell
Implementations
sourceimpl<'pin, T: QObject + ?Sized + 'pin> QObjectPinned<'pin, T>
impl<'pin, T: QObject + ?Sized + 'pin> QObjectPinned<'pin, T>
pub fn borrow_mut(&self) -> QObjectRefMut<'_, T>
pub fn as_ptr(&self) -> *mut T
sourceimpl<'pin, T: QObject + ?Sized + 'pin> QObjectPinned<'pin, T>
impl<'pin, T: QObject + ?Sized + 'pin> QObjectPinned<'pin, T>
sourceimpl<'pin, T: QObject + 'pin> QObjectPinned<'pin, T>
impl<'pin, T: QObject + 'pin> QObjectPinned<'pin, T>
sourcepub fn get_or_create_cpp_object(self) -> *mut c_void
pub fn get_or_create_cpp_object(self) -> *mut c_void
Get the pointer ot the C++ Object, or crate it if it was not yet created
Trait Implementations
sourceimpl<'pin, T: QObject + ?Sized + 'pin> Clone for QObjectPinned<'pin, T>
impl<'pin, T: QObject + ?Sized + 'pin> Clone for QObjectPinned<'pin, T>
sourceimpl<'pin, T: QObject + 'pin> From<QObjectPinned<'pin, T>> for QVariant
impl<'pin, T: QObject + 'pin> From<QObjectPinned<'pin, T>> for QVariant
sourcefn from(obj: QObjectPinned<'pin, T>) -> Self
fn from(obj: QObjectPinned<'pin, T>) -> Self
Performs the conversion.
impl<'pin, T: QObject + ?Sized + 'pin> Copy for QObjectPinned<'pin, T>
Auto Trait Implementations
impl<'pin, T> !RefUnwindSafe for QObjectPinned<'pin, T>
impl<'pin, T> !Send for QObjectPinned<'pin, T>
impl<'pin, T> !Sync for QObjectPinned<'pin, T>
impl<'pin, T: ?Sized> Unpin for QObjectPinned<'pin, T>
impl<'pin, T> !UnwindSafe for QObjectPinned<'pin, T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more