GLib.VariantType.prototype.is_definite
function is_definite(): Boolean { // Gjs wrapper for g_variant_type_is_definite() }
Determines if the given type is definite (ie: not indefinite).
A type is definite if its type string does not contain any indefinite type characters ('*', '?', or 'r').
A GLib.Variant instance may not have an indefinite type, so calling this function on the result of GLib.Variant.prototype.get_type will always result in true being returned. Calling this function on an indefinite type like %G_VARIANT_TYPE_ARRAY, however, will result in false being returned.
- Returns
-
true if type is definite
Since 2.24