![]() |
Spicy
|
#include <type-info.h>
Public Member Functions | |
Struct (std::vector< struct_::Field > fields) | |
auto | fields (bool include_internal=false) const |
auto | iterate (const Value &v, bool include_internal=false) const |
Auxiliary type information for type `struct
.
|
inline |
Constructor
fields | the struct's fields |
|
inline |
Returns the struct's field.
include_internal | include internal fields |
|
inline |
Returns a vector that can be iterated over to visit all the fields.
v | the value referring to the struct to iterate over |
include_internal | include internal fields |
(field, value)
where field is the current `struct_::Field
and value is the field's value.