Type Alias GInitiallyUnowned

Source
pub type GInitiallyUnowned = _GObject;
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().

Aliased Type§

struct GInitiallyUnowned {
    pub g_type_instance: _GTypeInstance,
    pub ref_count: u32,
    pub qdata: *mut _GData,
}

Fields§

§g_type_instance: _GTypeInstance§ref_count: u32§qdata: *mut _GData

Trait Implementations

Source§

impl Clone for _GObject

Source§

fn clone(&self) -> _GObject

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for _GObject

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for _GObject

Source§

fn eq(&self, other: &_GObject) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for _GObject

Source§

impl Eq for _GObject

Source§

impl StructuralPartialEq for _GObject