Macro wsbps::impl_packet_data
source · [−]macro_rules! impl_packet_data {
(
enum $Name:ident $Mode:tt $Type:ty {
$($Field:ident, $Value:expr),*
}
) => { ... };
(
struct $Name:ident $Mode:tt {
$($Field:ident, $FieldType:ty),*
}
) => { ... };
}
Expand description
Impl Packet Data
This is the underlying backing macro for packet_data which handles which type should be implemented and for which mode (enum / struct) this is used to speed up parsing and reduce the complexity of the packet_data macro