[go: up one dir, main page]

Function combine::parser::combinator::lazy[][src]

pub fn lazy<P, R>(p: P) -> Lazy<P> where
    P: FnMut() -> R,
    R: Parser

Constructs the parser lazily and on each parse_* call. Can be used to effectively reduce the size of deeply nested parsers as only the function producing the parser is stored in Lazy