Trait mentat_parser_utils::value_and_span::Item [] [src]

pub trait Item<'a>: Clone + PartialEq + Sized {
    type Position: Clone + Ord + Display;
    fn start(&self) -> Self::Position;
fn update_position(&self, _: &mut Self::Position);
fn child_iter(&'a self) -> Iter<'a>;
fn child_stream(&'a self) -> Stream<'a>;
fn atom_iter(&'a self) -> Iter<'a>;
fn atom_stream(&'a self) -> Stream<'a>;
fn keyword_map_iter(&'a self) -> Iter<'a>;
fn keyword_map_stream(&'a self) -> Stream<'a>; }

Things specific to parsing with combine and our Stream that need a trait to live outside of the edn crate.

Associated Types

Position could be specialized to SpanPosition.

Required Methods

A slight generalization of combine::Positioner that allows to set the position based on the edn::ValueAndSpan being iterated.

Important traits for Iter<'a>

Important traits for Iter<'a>

Important traits for Iter<'a>

Implementations on Foreign Types

impl<'a> Item<'a> for ValueAndSpan
[src]

Important traits for Iter<'a>

Important traits for Iter<'a>

Important traits for Iter<'a>

Implementors