pub struct QObjectMutPtr(/* private fields */);Expand description
A thin wrapper around *mut QObject.
Using the ‘newtype’ idiom lets us implement ExternType
for it, which wouldn’t be possible for pure *mut QObject itself.
Implementations§
Source§impl QObjectMutPtr
impl QObjectMutPtr
Sourcepub unsafe fn from_raw(raw: *mut QObject) -> Self
pub unsafe fn from_raw(raw: *mut QObject) -> Self
Create a new instance from a raw pointer.
§Safety
The pointer is passed to C++ as a QObject* and may be dereferenced
there. This wrapper tracks neither ownership nor lifetime,
so the object must outlive every use of the underlying QObject pointer
(including any copy stored in a QVariant or QList).
Sourcepub fn as_mut_ptr(&self) -> *mut QObject
pub fn as_mut_ptr(&self) -> *mut QObject
Return a wrapped raw mut pointer.
Trait Implementations§
Source§impl Clone for QObjectMutPtr
impl Clone for QObjectMutPtr
Source§fn clone(&self) -> QObjectMutPtr
fn clone(&self) -> QObjectMutPtr
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for QObjectMutPtr
Source§impl Debug for QObjectMutPtr
impl Debug for QObjectMutPtr
impl Eq for QObjectMutPtr
Source§impl ExternType for QObjectMutPtr
impl ExternType for QObjectMutPtr
Source§impl PartialEq for QObjectMutPtr
impl PartialEq for QObjectMutPtr
Source§impl QListElement for QObjectMutPtr
impl QListElement for QObjectMutPtr
type TypeId = (Q, L, i, s, t, __, Q, O, b, j, e, c, t, M, u, t, P, t, r)
fn append(list: &mut QList<Self>, value: Self)
fn append_clone(list: &mut QList<Self>, value: &Self)
fn clear(list: &mut QList<Self>)
fn clone(list: &QList<Self>) -> QList<Self>
fn contains(list: &QList<Self>, value: &Self) -> bool
fn default() -> QList<Self>
fn drop(list: &mut QList<Self>)
fn index_of(list: &QList<Self>, value: &Self) -> isize
fn insert(list: &mut QList<Self>, pos: isize, value: Self)
fn insert_clone(list: &mut QList<Self>, pos: isize, value: &Self)
fn len(list: &QList<Self>) -> isize
fn remove(list: &mut QList<Self>, pos: isize)
fn reserve(list: &mut QList<Self>, size: isize)
Source§impl QVariantValue for QObjectMutPtr
impl QVariantValue for QObjectMutPtr
impl StructuralPartialEq for QObjectMutPtr
Auto Trait Implementations§
impl !Send for QObjectMutPtr
impl !Sync for QObjectMutPtr
impl Freeze for QObjectMutPtr
impl RefUnwindSafe for QObjectMutPtr
impl Unpin for QObjectMutPtr
impl UnsafeUnpin for QObjectMutPtr
impl UnwindSafe for QObjectMutPtr
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