pub struct CustomParser<'f, I, O> { /* private fields */ }Expand description
A parser that uses a custom function.
Implementations§
Source§impl<'f, I, O> CustomParser<'f, I, O>
impl<'f, I, O> CustomParser<'f, I, O>
pub fn new(closure: &'f dyn Fn(&[I]) -> ParseResult<O>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<'f, I, O> Freeze for CustomParser<'f, I, O>
impl<'f, I, O> !RefUnwindSafe for CustomParser<'f, I, O>
impl<'f, I, O> !Send for CustomParser<'f, I, O>
impl<'f, I, O> !Sync for CustomParser<'f, I, O>
impl<'f, I, O> Unpin for CustomParser<'f, I, O>
impl<'f, I, O> !UnwindSafe for CustomParser<'f, I, O>
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