##// END OF EJS Templates
rust-config: add docstring to inner `get_parse` method...
Raphaël Gomès -
r51663:d64df6b3 default
parent child Browse files
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 fn get_parse<'config, T: 'config>(
396 fn get_parse<'config, T: 'config>(
390 &'config self,
397 &'config self,
391 section: &[u8],
398 section: &[u8],
General Comments 0
You need to be logged in to leave comments. Login now