Trait Location

Source
pub trait Location {
    // Required methods
    fn previous_token_end(&self) -> usize;
    fn current_token_start(&self) -> usize;
}
Expand description

Current parse locations offset

See LocatingSlice for adding location tracking to your Stream

Required Methods§

Source

fn previous_token_end(&self) -> usize

Previous token’s end offset

Source

fn current_token_start(&self) -> usize

Current token’s start offset

Implementors§

Source§

impl<I> Location for LocatingSlice<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,

Source§

impl<T> Location for TokenSlice<'_, T>
where T: Location,