module Cannon::Auto
Overview
Include this into your data structure (class
or struct
) to automatically
generate the #to_cannon_io(io)
and .from_cannon_io(io)
methods.
Please see AutoToIo
and AutoFromIo
for details on each.
You'll need a constructor accepting a value for all instance variables.