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, S> Location for Stateful<I, S>
where I: Location,