Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Get Scripted Functions Metadata from AST

Use AST::iter_functions to iterate through all the script-defined functions in an AST.

ScriptFnMetadata

The type returned from the iterator is ScriptFnMetadata with the following fields:

FieldRequiresTypeDescription
name&strName of function
paramsVec<&str>Number of parameters
accessFnAccessFnAccess::Public (public)
FnAccess::Private (private)
commentsmetadataVec<&str>Doc-comments, if any, one per line