combine::parser::combinator

Trait Converter

source
pub trait Converter<'a, Input>
where Input: Stream,
{ type InputInner: Stream + 'a; // Required methods fn convert( &mut self, input: &'a mut Input, ) -> Result<Self::InputInner, Input::Error>; fn convert_error( &mut self, input: &'a mut Input, error: <Self::InputInner as StreamOnce>::Error, ) -> Input::Error; }

Required Associated Types§

Required Methods§

source

fn convert( &mut self, input: &'a mut Input, ) -> Result<Self::InputInner, Input::Error>

source

fn convert_error( &mut self, input: &'a mut Input, error: <Self::InputInner as StreamOnce>::Error, ) -> Input::Error

Implementations on Foreign Types§

source§

impl<'a, Input, InputInner> Converter<'a, Input> for (fn(_: &'a mut Input) -> Result<InputInner, Input::Error>, fn(_: &'a mut Input, _: InputInner::Error) -> Input::Error)
where Input: Stream, InputInner: Stream + 'a,

source§

type InputInner = InputInner

source§

fn convert(&mut self, input: &'a mut Input) -> Result<InputInner, Input::Error>

source§

fn convert_error( &mut self, input: &'a mut Input, error: InputInner::Error, ) -> Input::Error

Implementors§