Adds a new rule to this configuration. Note that the order rules are added is significant as only the first matching rule is used for a function.
(&mut self, filter: FunctionFilter, flags: FunctionFlags)
| 45 | /// Note that the order rules are added is significant as only the first |
| 46 | /// matching rule is used for a function. |
| 47 | pub fn push(&mut self, filter: FunctionFilter, flags: FunctionFlags) { |
| 48 | match filter { |
| 49 | FunctionFilter::Name(filter) => { |
| 50 | self.rules.push(FunctionRule { |
| 51 | filter, |
| 52 | flags, |
| 53 | used: false, |
| 54 | }); |
| 55 | } |
| 56 | FunctionFilter::Default => { |
| 57 | self.default = flags; |
| 58 | } |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | /// Returns the set of configuration flags associated with `func`. |
| 63 | /// |
no outgoing calls