Function aidl_parser::traverse::filter_symbols [−][src]
pub fn filter_symbols<'a, F>(
ast: &'a Aidl,
filter: SymbolFilter,
f: F
) -> Vec<Symbol<'a>>ⓘ where
F: FnMut(&Symbol<'a>) -> bool,
Expand description
Traverse the AST and filter the symbols based on the given predicate.
For each symbol, the predicate is called and the symbol will be added to the returned vector when the return value is true.
See also: walk_symbols