devela::_dep::winnow::stream

Trait Location

pub trait Location {
    // Required method
    fn location(&self) -> usize ;
}
Available on crate feature dep_winnow only.
Expand description

Number of indices input has advanced since start of parsing

See LocatingSlice for adding location tracking to your Stream

Required Methods§

fn location(&self) -> usize

Number of indices input has advanced since start of parsing

Implementors§

§

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

§

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

§

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