pub type RuleToMessageFn<R> = Box<dyn Fn(&R) -> Option<String>>;
Function mapping rule to its helper message defined by user.
struct RuleToMessageFn<R>(/* private fields */);