You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/opting_out_of_rules.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Opting out of rules
1
+
# [Opting out of rules](@id opt_out)
2
2
3
3
It is common to define rules fairly generically.
4
4
Often matching (or exceeding) how generic the matching original primal method is.
@@ -53,6 +53,12 @@ Similar can be done `@opt_out frule`.
53
53
It can also be done passing in a [`RuleConfig`](@ref config).
54
54
55
55
56
+
!!! warning "If the general rule uses a config, the opt-out must also"
57
+
Following the same principles as for [rules with config](@ref config), a rule with a `RuleConfig` argument will take precedence over one without, including if that one is a opt-out rule.
58
+
But if the general rule does not use a config, then the opt-out rule *can* use a config.
59
+
This allows, for example, you to use opt-out to avoid a particular AD system using a opt-out rule that takes that particular AD's config.
60
+
61
+
56
62
## How to support this (for AD implementers)
57
63
58
64
We provide two ways to know that a rule has been opted out of.
0 commit comments