[][src]Trait simple_json2::parser::Input

pub trait Input: Default {
    type Position: Position;
    type Error: Error<Position = Self::Position>;
    fn next(
        &self,
        pos: Self::Position
    ) -> Result<(char, Self::Position), Self::Error>;
fn next_range(
        &self,
        start: Self::Position,
        counts: u32
    ) -> Result<(&str, Self::Position), Self::Error>;
fn error_at(&self, pos: Self::Position, reason: &'static str) -> Self::Error; }

Associated Types

type Position: Position

type Error: Error<Position = Self::Position>

Loading content...

Required methods

fn next(
    &self,
    pos: Self::Position
) -> Result<(char, Self::Position), Self::Error>

fn next_range(
    &self,
    start: Self::Position,
    counts: u32
) -> Result<(&str, Self::Position), Self::Error>

fn error_at(&self, pos: Self::Position, reason: &'static str) -> Self::Error

Loading content...

Implementations on Foreign Types

impl<'_> Input for &'_ str[src]

type Position = SimplePosition

type Error = SimpleError

Loading content...

Implementors

Loading content...