Add doc on Engine::gen_fn_signatures.

This commit is contained in:
Stephen Chung
2020-11-23 20:27:20 +08:00
parent 9abd397276
commit 2d73468723
3 changed files with 90 additions and 2 deletions

View File

@@ -1650,10 +1650,10 @@ impl Engine {
}
/// Generate a list of all registered functions.
///
/// The ordering is:
/// Functions from the following sources are included, in order:
/// 1) Functions registered into the global namespace
/// 2) Functions in registered sub-modules
/// 3) Functions in packages
/// 3) Functions in packages (optional)
pub fn gen_fn_signatures(&self, include_packages: bool) -> Vec<String> {
let mut signatures: Vec<_> = Default::default();