[#644] Add parse extra bindings to builder
This commit is contained in:
committed by
Emilio Cobos Álvarez
parent
428ae2c6c9
commit
ee01884d90
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user