LuaTable.toStruct

Create struct of type T and fill its members with fields from this table.

Struct fields that are not present in this table are left at their default value.

struct LuaTable
@trusted
T
toStruct
(
T
)
()
if (
is(T == struct)
)

Parameters

T

any struct type

Return Value

Type: T

Newly created struct

Meta