pub struct Parser<'s, 't> { /* private fields */ }Expand description
Parser for jq programs.
Implementations§
Source§impl<'s, 't> Parser<'s, 't>
impl<'s, 't> Parser<'s, 't>
Sourcepub fn parse<T: Default, F>(self, f: F) -> Result<T, Vec<TError<'t, &'s str>>>
pub fn parse<T: Default, F>(self, f: F) -> Result<T, Vec<TError<'t, &'s str>>>
Parse tokens with the given function.
Returns Ok if the function consumes the whole output without producing any error.
Auto Trait Implementations§
impl<'s, 't> Freeze for Parser<'s, 't>
impl<'s, 't> RefUnwindSafe for Parser<'s, 't>
impl<'s, 't> Send for Parser<'s, 't>
impl<'s, 't> Sync for Parser<'s, 't>
impl<'s, 't> Unpin for Parser<'s, 't>
impl<'s, 't> UnwindSafe for Parser<'s, 't>
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