Struct qmetaobject::QObjectPinned [−][src]
A reference to a RefCell
Implementations
impl<'pin, T: QObject + ?Sized + 'pin> QObjectPinned<'pin, T>
[src]
pub fn borrow(&self) -> &T
[src]
Borrow the object
pub fn borrow_mut(&self) -> QObjectRefMut<'_, T>
[src]
pub fn as_ptr(&self) -> *mut T
[src]
impl<'pin, T: QObject + ?Sized + 'pin> QObjectPinned<'pin, T>
[src]
pub unsafe fn new(inner: &'pin RefCell<T>) -> Self
[src]
Internal function used from the code generated by the QObject derive macro unsafe because one must ensure it does not move in memory
impl<'pin, T: QObject + 'pin> QObjectPinned<'pin, T>
[src]
pub fn get_or_create_cpp_object(self) -> *mut c_void
[src]
Get the pointer ot the C++ Object, or crate it if it was not yet created
Trait Implementations
impl<'pin, T: QObject + ?Sized + 'pin> Clone for QObjectPinned<'pin, T>
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'pin, T: QObject + ?Sized + 'pin> Copy for QObjectPinned<'pin, T>
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,