[][src]Function lip::located

pub fn located<'a, P: 'a, A, S: Clone + 'a>(
    parser: P
) -> impl Parser<'a, Located<A>, S> where
    P: Parser<'a, A, S>, 

Record the beginning and ending location of the thing being parsed.

You can surround any parser with located and remember the location of the parsed output for later error messaging or text processing.