Function

Gst-1.0Gstvalue_can_union

  • Determines if value1 and value2 can be non-trivially unioned. Any two values can be trivially unioned by adding both of them to a GstValueList. However, certain types have the possibility to be unioned in a simpler way. For example, an integer range and an integer can be unioned if the integer is a subset of the integer range. If there is the possibility that two values can be unioned, this function returns true.

    Parameters

    • value1: any

      a value to union

    • value2: any

      another value to union

    Returns boolean

    true if there is a function allowing the two values to be unioned.