Function Row.toStruct

Move the content of the row into a compatible struct

This method takes no account of NULL column values. If a column was NULL, the corresponding Variant value would be unchanged in those cases.

The method will throw if the type of the Variant is not implicitly convertible to the corresponding struct member.

Prototype

void toStruct(S)(
  ref S s
)
if (is(S == struct));

Parameters

NameDescription
S a struct type.
s an ref instance of the type

Authors

Copyright

License