Show More
@@ -386,6 +386,13 b' impl Config {' | |||
|
386 | 386 | })) |
|
387 | 387 | } |
|
388 | 388 | |
|
389 | /// Return the config item that corresponds to a section + item, a function | |
|
390 | /// to parse from the raw bytes to the expected type (which is passed as | |
|
391 | /// a string only to make debugging easier). | |
|
392 | /// Used by higher-level methods like `get_bool`. | |
|
393 | /// | |
|
394 | /// `fallback_to_default` controls whether the default value (if any) is | |
|
395 | /// returned if nothing is found. | |
|
389 | 396 | fn get_parse<'config, T: 'config>( |
|
390 | 397 | &'config self, |
|
391 | 398 | section: &[u8], |
General Comments 0
You need to be logged in to leave comments.
Login now