Macro flatdata::define_archive [−][src]
macro_rules! define_archive { ($name:ident, $builder_name:ident, $archive_schema:expr; // struct resources $(($struct_resource:ident, $struct_setter:ident, $struct_type:tt, $struct_schema:expr, $is_optional_struct:ident)),*; // vector resources $(($vector_resource:ident, $vector_setter:ident, $vector_start:ident, $element_type:tt, $element_schema:expr, $is_optional_vector:ident)),*; // multivector resources $(($multivector_resource:ident, $multivector_start:ident, $variadic_type:tt, $variadic_type_schema:expr, $multivector_resource_index:ident, $index_type:path, $is_optional_multivector:ident)),*; // raw data resources $(($raw_data_resource:ident, $raw_data_resource_setter:ident, $raw_data_schema:expr, $is_optional_raw_data:ident)),*; // subarchive resources $(($subarchive_resource:ident, $subarchive_type:tt, $subarchive_builder_type:tt, $subarchive_schema:expr, $is_optional_subarchive:ident)),* ) => { ... }; }
Macro used by generator to define a flatdata archive and corresponding archive builder.