pub enum AnyParser<'input, I, T>{
String {
parser: Parser<'input, StrInput<'input>>,
name: String,
},
Iter {
parser: Parser<'static, BufferedInput<I>>,
name: String,
},
Custom {
parser: Parser<'input, T>,
name: String,
},
Replay {
parser: ReplayParser<'input>,
name: String,
},
}Expand description
A wrapper for different types of parsers.
Variants§
String
A parser over a string input.
Fields
Iter
A parser over an iterator input.
Fields
§
parser: Parser<'static, BufferedInput<I>>The parser itself.
Custom
A parser over a custom input.
Replay
A parser over a replayed event stream.
Auto Trait Implementations§
impl<'input, I, T> Freeze for AnyParser<'input, I, T>
impl<'input, I, T> RefUnwindSafe for AnyParser<'input, I, T>where
T: RefUnwindSafe,
I: RefUnwindSafe,
impl<'input, I, T> Send for AnyParser<'input, I, T>
impl<'input, I, T> Sync for AnyParser<'input, I, T>
impl<'input, I, T> Unpin for AnyParser<'input, I, T>
impl<'input, I, T> UnsafeUnpin for AnyParser<'input, I, T>where
T: UnsafeUnpin,
I: UnsafeUnpin,
impl<'input, I, T> UnwindSafe for AnyParser<'input, I, T>where
T: UnwindSafe,
I: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more