[#644] Add parse extra bindings to builder

This commit is contained in:
Philipp Kaiser
2021-01-08 14:58:25 +01:00
committed by Emilio Cobos Álvarez
parent 428ae2c6c9
commit ee01884d90
+9
View File
@@ -231,6 +231,15 @@ impl Builder {
self
}
#[allow(unused)]
pub fn with_parse_extra_bindings<S: AsRef<str>>(mut self, extra_bindings: &[S]) -> Builder {
self.config.parse.extra_bindings = extra_bindings
.iter()
.map(|x| String::from(x.as_ref()))
.collect();
self
}
#[allow(unused)]
pub fn with_documentation(mut self, documentation: bool) -> Builder {
self.config.documentation = documentation;