oni_comb_parser_rs/internal/parser_impl/
discard_parser_impl.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::core::Parser;
use crate::extension::parser::DiscardParser;
use crate::extension::parsers::DiscardParsers;
use crate::internal::ParsersImpl;
use std::fmt::Debug;

impl<'a, I, A> DiscardParser<'a> for Parser<'a, I, A> {
  fn discard(self) -> Self::P<'a, Self::Input, ()>
  where
    Self::Output: Debug + 'a, {
    ParsersImpl::discard(self)
  }
}