Struct qmetaobject::QPointer [−][src]
Expand description
A Wrapper around a QPointer
Implementations
impl<T: QObject + ?Sized> QPointer<T>
[src]
impl<T: QObject + ?Sized> QPointer<T>
[src]impl<T: QObject> QPointer<T>
[src]
impl<T: QObject> QPointer<T>
[src]pub fn as_pinned(&self) -> Option<QObjectPinned<'_, T>>
[src]
pub fn as_pinned(&self) -> Option<QObjectPinned<'_, T>>
[src]Returns a pinned reference to the QObject, or None if it was deleted
Trait Implementations
impl<T> PropertyType for QPointer<T> where
T: QObject,
[src]
impl<T> PropertyType for QPointer<T> where
T: QObject,
[src]fn register_type(_name: &CStr) -> i32
[src]
unsafe fn pass_to_qt(&mut self, a: *mut c_void)
[src]
unsafe fn read_from_qt(a: *const c_void) -> Self
[src]
Auto Trait Implementations
impl<T: ?Sized> RefUnwindSafe for QPointer<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> !Send for QPointer<T>
impl<T> !Sync for QPointer<T>
impl<T: ?Sized> Unpin for QPointer<T>
impl<T: ?Sized> UnwindSafe for QPointer<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more