Type Alias GSettingsBindSetMapping

Source
pub type GSettingsBindSetMapping = Option<unsafe extern "C" fn(value: *const GValue, expected_type: *const GVariantType, user_data: gpointer) -> *mut GVariant>;
Expand description

GSettingsBindSetMapping: @value: a #GValue containing the property value to map @expected_type: the #GVariantType to create @user_data: user data that was specified when the binding was created

The type for the function that is used to convert an object property value to a #GVariant for storing it in #GSettings.

Returns: a new #GVariant holding the data from @value, or %NULL in case of an error

Aliased Type§

enum GSettingsBindSetMapping {
    None,
    Some(unsafe extern "C" fn(*const _GValue, *const _GVariantType, *mut c_void) -> *mut _GVariant),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*const _GValue, *const _GVariantType, *mut c_void) -> *mut _GVariant)

Some value of type T.