winnow::stream

Trait Location

source
pub trait Location {
    // Required method
    fn location(&self) -> usize;
}
Expand description

Number of indices input has advanced since start of parsing

See Located for adding location tracking to your Stream

Required Methods§

source

fn location(&self) -> usize

Number of indices input has advanced since start of parsing

Implementors§

source§

impl<I> Location for Located<I>
where I: Clone + Offset,

source§

impl<I> Location for Partial<I>
where I: Location,

source§

impl<I, E> Location for Recoverable<I, E>
where I: Location + Stream,

Available on crate features unstable-recover and std only.
source§

impl<I, S> Location for Stateful<I, S>
where I: Location,