1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use super::iterator_bound::InputIteratorTrait;
use super::tuple::Tuple;

#[derive(Debug)]
pub struct ParseResult<Output, It>
where
    Output: Tuple,
    It: InputIteratorTrait,
{
    /// Output of parsing, extracted data.
    ///
    /// 'None' means parsing failed
    pub output: Option<Output>,

    /// iterator after parsing.
    ///
    /// if parsing failed, this will be the same as the input iterator.
    pub it: It,
}