#[repr(C)]pub struct _GObject {
pub g_type_instance: GTypeInstance,
pub ref_count: guint,
pub qdata: *mut GData,
}
Expand description
GObject:
The base object type.
All the fields in the GObject
structure are private to the implementation
and should never be accessed directly.
Since GLib 2.72, all #GObjects are guaranteed to be aligned to at least the alignment of the largest basic GLib type (typically this is #guint64 or #gdouble). If you need larger alignment for an element in a #GObject, you should allocate it on the heap (aligned), or arrange for your #GObject to be appropriately padded. This guarantee applies to the #GObject (or derived) struct, the #GObjectClass (or derived) struct, and any private data allocated by G_ADD_PRIVATE().
Fields§
§g_type_instance: GTypeInstance
§ref_count: guint
§qdata: *mut GData
Trait Implementations§
impl Copy for _GObject
impl Eq for _GObject
impl StructuralPartialEq for _GObject
Auto Trait Implementations§
impl Freeze for _GObject
impl RefUnwindSafe for _GObject
impl !Send for _GObject
impl !Sync for _GObject
impl Unpin for _GObject
impl UnwindSafe for _GObject
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