Skip to content

Commit

Permalink
Removed sealed versions of parser traits in favour of doc(hidden) sea…
Browse files Browse the repository at this point in the history
…ling
  • Loading branch information
zesterer committed Oct 26, 2024
1 parent 857f0de commit a7a3c1f
Show file tree
Hide file tree
Showing 14 changed files with 173 additions and 246 deletions.
36 changes: 2 additions & 34 deletions src/blanket.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use super::*;

impl<'a, T, I, O, E> ParserSealed<'a, I, O, E> for &T
impl<'a, T, I, O, E> Parser<'a, I, O, E> for &T
where
T: ?Sized + Parser<'a, I, O, E>,
I: Input<'a>,
Expand All @@ -16,7 +16,7 @@ where
go_extra!(O);
}

impl<'a, T, I, O, E> ConfigParserSealed<'a, I, O, E> for &T
impl<'a, T, I, O, E> ConfigParser<'a, I, O, E> for &T
where
T: ?Sized + ConfigParser<'a, I, O, E>,
I: Input<'a>,
Expand All @@ -33,35 +33,3 @@ where

go_cfg_extra!(O);
}

impl<'a, I, O, E, P> Parser<'a, I, O, E> for P
where
I: Input<'a>,
E: ParserExtra<'a, I>,
P: ?Sized + ParserSealed<'a, I, O, E>,
{
}

impl<'a, I, O, E, P> ConfigParser<'a, I, O, E> for P
where
I: Input<'a>,
E: ParserExtra<'a, I>,
P: ?Sized + ConfigParserSealed<'a, I, O, E>,
{
}

impl<'a, I, O, E, P> IterParser<'a, I, O, E> for P
where
I: Input<'a>,
E: ParserExtra<'a, I>,
P: IterParserSealed<'a, I, O, E>,
{
}

impl<'a, I, O, E, P> ConfigIterParser<'a, I, O, E> for P
where
I: Input<'a>,
E: ParserExtra<'a, I>,
P: ConfigIterParserSealed<'a, I, O, E>,
{
}
Loading

0 comments on commit a7a3c1f

Please sign in to comment.