Function GenericDatum.opAssign

Sets the value of the GenericDatum to a value corresponding with its type.

void opAssign(T) (
  T val
)
if (!is(T : GenericDatum));

Throws

VariantException when the value type does not match the datum type.