Expand description
Internal utilities for parser.
Re-exports§
pub use duration::display_duration;pub use duration::parse_duration;pub use number::parse_str_radix;
Modules§
Traits§
- Trait that implements the Visitor pattern for a depth first walk on Expr AST.
pre_visitis called before any children are visited, and thenpost_visitis called after all children have been visited. Onlypre_visitis required.
Functions§
- A util function that traverses an AST Expr in depth-first order. Returns
Ok(true)if all nodes were visited, andOk(false)if any call topre_visitorpost_visitreturnedOk(false)and may have cut short the recursion.