Crate common_macro

source

Modulesยง

Attribute Macrosยง

  • Attribute macro to convert a normal function to SQL administration function. The annotated function should accept:
  • A struct can be used as a creator for aggregate function if it has been annotated with this attribute first.
  • Attribute macro to print the caller to the annotated function. The caller is printed as its filename and the call site line number.
  • Attribute macro to convert an arithimetic function to a range function. The annotated function should accept servaral arrays as input and return a single value as output.
  • Attribute macro to derive std::fmt::Debug for the annotated Error type.

Derive Macrosยง