Type Alias GTypeValueCopyFunc

Source
pub type GTypeValueCopyFunc = Option<unsafe extern "C" fn(src_value: *const GValue, dest_value: *mut GValue)>;
Expand description

GTypeValueCopyFunc: @src_value: the value to copy @dest_value: (out): the location of the copy

Copies the content of a #GValue into another.

The @dest_value is a #GValue with zero-filled data section and @src_value is a properly initialized #GValue of same type, or derived type.

The purpose of this function is to copy the contents of @src_value into @dest_value in a way, that even after @src_value has been freed, the contents of @dest_value remain valid. String type example:

|[ dest_value->data[0].v_pointer = g_strdup (src_value->data[0].v_pointer); ]|

Since: 2.78

Aliased Type§

enum GTypeValueCopyFunc {
    None,
    Some(unsafe extern "C" fn(*const _GValue, *mut _GValue)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*const _GValue, *mut _GValue))

Some value of type T.