Struct qmetaobject::QObjectPinned
source · pub struct QObjectPinned<'pin, T: QObject + ?Sized + 'pin>(/* private fields */);
Expand description
A reference to a RefCell
Implementations§
source§impl<'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
source§impl<'pin, T: QObject + ?Sized + 'pin> QObjectPinned<'pin, T>
impl<'pin, T: QObject + ?Sized + 'pin> QObjectPinned<'pin, T>
source§impl<'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§
source§impl<'pin, T: QObject + 'pin> From<QObjectPinned<'pin, T>> for QVariant
impl<'pin, T: QObject + 'pin> From<QObjectPinned<'pin, T>> for QVariant
source§fn from(obj: QObjectPinned<'pin, T>) -> Self
fn from(obj: QObjectPinned<'pin, T>) -> Self
Converts to this type from the input type.
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more