equal


Description:

public bool equal (VariantType other)

Compares this and type2 for equality.

Only returns true if the types are exactly equal. Even if one type is an indefinite type and the other is a subtype of it, false will be returned if they are not exactly equal. If you want to check for subtypes, use [method@GLib.VariantType.is_subtype_of].

The argument types of this and type2 are only `gconstpointer` to allow use with [ type@GLib.HashTable] without function pointer casting. For both arguments, a valid [type@GLib.VariantType] must be provided.

Parameters:

this

type to compare

type2

another type to compare

Returns:

true if this and type2 are exactly equal Since 2.24