File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11# [ Rule configurations and calling back into AD] (@id config)
22
33[ ` RuleConfig ` ] ( @ref ) is a method for making rules conditionally defined based on the presence of certain features in the AD system.
4- Once key such feature is the ability to perform AD either in forwards or reverse mode or both.
4+ One key such feature is the ability to perform AD either in forwards or reverse mode or both.
55
66This is done with a trait-like system (not Holy Traits), where the ` RuleConfig ` has a union of types as its only type-parameter.
77Where each type represents a particular special feature of this AD.
7070
7171## Writing rules that depend on other special requirements of the AD.
7272
73- The ` >:CanReverseMode ` and ` >:CanForwardsMode ` are two examples of special properties that a ` RuleConfig ` could allow.
73+ The ` >:HasReverseMode ` and ` >:HasForwardsMode ` are two examples of special properties that a ` RuleConfig ` could allow.
7474Others could also exist, but right now they are the only two.
7575It is likely that in the future such will be provided for e.g. mutation support.
7676
You can’t perform that action at this time.
0 commit comments