[][src]Macro flp_framework::deriveAddr

macro_rules! deriveAddr {
    ( $addr:ident, $align:expr ) => { ... };
}

Derive all the boilerplate traits necessary to make a Floorplan-generated address type support all the necessary basic operations. These operations include:

  • Arithmetic operations
  • Comparison operations
  • Alignment verification
  • Construction and deconstruction from a usize
  • Pretty printing and other formatters

This macro is the main entrypoint for all Floorplan types, and will suffice in general for any new address types.