How to define custom AD rule in ForwardDiff

I see. Going back to the first post, just to complete the learning round, how can I define custom rules with DiffRules that can be used with ForwardDiff?