diff options
author | Jeff Waugh <jdub@bethesignal.org> | 2016-10-08 00:20:11 +1100 |
---|---|---|
committer | Jeff Waugh <jdub@bethesignal.org> | 2016-10-08 00:20:11 +1100 |
commit | 45ba67b6107b57d7d4ed748b3c3a43de1c5b44ef (patch) | |
tree | 2c28d411b385e32abfbc53d7bf926c96a84e845a | |
parent | 0325c486faf4bdadcd5235d3bda62b20926860be (diff) |
Builder::whitelisted_function()
-rwxr-xr-x | src/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -77,6 +77,11 @@ impl Builder { self } + pub fn whitelisted_function<T: Into<String>>(mut self, arg: T) -> Builder { + self.options.whitelisted_functions.insert(&arg.into()); + self + } + pub fn raw_line<T: Into<String>>(mut self, arg: T) -> Builder { self.options.raw_lines.push(arg.into()); self |