macro_rules! impl_flatbuffer_pack {
($native_fb_stuct:ty, $flatbuffer_table_obj:ty) => { ... };
}Expand description
Implements the FlatbufferPack trait for a native FlatBuffer struct and
table pair.
§Overview
This macro bridges the generated native Rust type (e.g., MyTableT) and
its corresponding FlatBuffer table type (e.g., MyTable<'a>).
It enables both packing and unpacking to be used generically across the framework without writing boilerplate implementations.
§Parameters
$native_fb_stuct: The generated native struct type (usually<Name>T) that represents the FlatBuffer object in Rust.$flatbuffer_table_obj: The corresponding FlatBuffer table type (usually<Name<'a>>) generated by the FlatBuffers compiler.