pub struct Boxed<P: ?Sized>(/* private fields */);
Expand description
The result of the boxed
function in the
BoxedParserExt
trait
Trait Implementations§
Auto Trait Implementations§
impl<P> Freeze for Boxed<P>where
P: ?Sized,
impl<P> RefUnwindSafe for Boxed<P>where
P: RefUnwindSafe + ?Sized,
impl<P> Send for Boxed<P>
impl<P> Sync for Boxed<P>
impl<P> Unpin for Boxed<P>where
P: ?Sized,
impl<P> UnwindSafe for Boxed<P>where
P: UnwindSafe + ?Sized,
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
Source§impl<'p, T, E, P> BoxedParserExt<'p, T, E> for Pwhere
T: 'p,
E: 'p,
P: Parser<T, E> + 'p,
impl<'p, T, E, P> BoxedParserExt<'p, T, E> for Pwhere
T: 'p,
E: 'p,
P: Parser<T, E> + 'p,
Source§impl<T, E, P> ConcatParserExt<T, E> for P
impl<T, E, P> ConcatParserExt<T, E> for P
Source§impl<T, E, P> ListParserExt<T, E> for P
impl<T, E, P> ListParserExt<T, E> for P
Source§impl<T, E, P> ParserExt<T, E> for Pwhere
P: Parser<T, E>,
impl<T, E, P> ParserExt<T, E> for Pwhere
P: Parser<T, E>,
Source§fn or<P: Parser<T, E>>(self, other: P) -> Or<Self, P, E>
fn or<P: Parser<T, E>>(self, other: P) -> Or<Self, P, E>
Evaluate two alternative parsers producing all successful parses from both Read more
Source§fn map<V, F: Fn(T) -> V>(self, map: F) -> Map<Self, F, T, E>
fn map<V, F: Fn(T) -> V>(self, map: F) -> Map<Self, F, T, E>
Map the output of a parser to a new value and type Read more
Source§fn and_then<V, Q: Parser<V, E>, F: Fn(T) -> Q>(
self,
map: F,
) -> AndThen<Self, F, T, E>
fn and_then<V, Q: Parser<V, E>, F: Fn(T) -> Q>( self, map: F, ) -> AndThen<Self, F, T, E>
Apply an additional parser dependant on the result of the preceding parser Read more
Source§fn fold<P: Parser<T, E>, F: Fn(T) -> P>(self, fold: F) -> Fold<Self, F, E>
fn fold<P: Parser<T, E>, F: Fn(T) -> P>(self, fold: F) -> Fold<Self, F, E>
Repeatedly apply a parser using it to extend the previous results of the parse Read more
Source§fn on_failure<P: Parser<T, E>>(self, other: P) -> OnFailure<Self, P, E>
fn on_failure<P: Parser<T, E>>(self, other: P) -> OnFailure<Self, P, E>
Apply an alternative parser if the preceding parser produces errors or no successful parses Read more
Source§fn on_none<P: Parser<T, E>>(self, other: P) -> OnNone<Self, P, E>
fn on_none<P: Parser<T, E>>(self, other: P) -> OnNone<Self, P, E>
Apply an alternative parser if the preceding parser produces no successful parses Read more
Source§fn drop<V, P: Parser<V, E>>(self, other: P) -> Drop<Self, P, V, E>
fn drop<V, P: Parser<V, E>>(self, other: P) -> Drop<Self, P, V, E>
Apply an additional parser and discard the result Read more
Source§fn maybe_drop<V, P: Parser<V, E>>(self, other: P) -> MaybeDrop<Self, P, V, E>
fn maybe_drop<V, P: Parser<V, E>>(self, other: P) -> MaybeDrop<Self, P, V, E>
Apply an additional parser and discard any result Read more
Source§fn skip<V, P: Parser<V, E>>(self, keep: P) -> Skip<Self, P, T, E>
fn skip<V, P: Parser<V, E>>(self, keep: P) -> Skip<Self, P, T, E>
Apply an additional parser and take its output instead Read more
Source§fn condition<F: Fn(&T) -> bool>(self, condition: F) -> Condition<Self, F, E>
fn condition<F: Fn(&T) -> bool>(self, condition: F) -> Condition<Self, F, E>
Only parse successfully if the output of the parser satisfies a given condition Read more
Source§fn end(self) -> End<Self, E>
fn end(self) -> End<Self, E>
Only parse successfully if there is no text remaining in the input after a parse Read more
Source§fn catch(self) -> Catch<Self, E>
fn catch(self) -> Catch<Self, E>
Transform all exceptions in the result into errors, moving the start of the associated
range to the start of the given parser. Read more
Source§fn meta(self) -> MetaMap<Self, E>
fn meta(self) -> MetaMap<Self, E>
Wrap the output of a parser with the location of the input parsed Read more
Source§fn delimited_by<D, P: Parser<D, E>, R: RangeBounds<usize>>(
self,
delimiter: P,
repetitions: R,
) -> DelimitedBy<Self, P, D, R, E>
fn delimited_by<D, P: Parser<D, E>, R: RangeBounds<usize>>( self, delimiter: P, repetitions: R, ) -> DelimitedBy<Self, P, D, R, E>
Repeat the parser a given number of times with the provided delimeter with an optional
trailing delimeter Read more
Source§fn strictly_delimited_by<D, P: Parser<D, E>, R: RangeBounds<usize>>(
self,
delimiter: P,
repetitions: R,
) -> StrictlyDelimitedBy<Self, P, D, R, E>
fn strictly_delimited_by<D, P: Parser<D, E>, R: RangeBounds<usize>>( self, delimiter: P, repetitions: R, ) -> StrictlyDelimitedBy<Self, P, D, R, E>
Repeat the parser a given number of times with the provided delimeter Read more
Source§fn surrounded_by<O: Clone, C: Clone, OP: Parser<O, E>, CP: Parser<C, E>>(
self,
open: OP,
close: CP,
) -> SurroundedBy<Self, OP, CP, O, C, E>
fn surrounded_by<O: Clone, C: Clone, OP: Parser<O, E>, CP: Parser<C, E>>( self, open: OP, close: CP, ) -> SurroundedBy<Self, OP, CP, O, C, E>
Enclose the parser in the given open and close delimeters Read more
Source§fn pair<B, P: Parser<B, E>>(self, other: P) -> Pair<Self, P, E>
fn pair<B, P: Parser<B, E>>(self, other: P) -> Pair<Self, P, E>
Parse two parsers and collect them in a tuple Read more
Source§fn space_after(self) -> SpaceAfter<Self, E>
fn space_after(self) -> SpaceAfter<Self, E>
Ignore the space that always appears after the parser Read more
Source§fn maybe_space_after(self) -> MaybeSpaceAfter<Self, E>
fn maybe_space_after(self) -> MaybeSpaceAfter<Self, E>
Ignore the space that might appear after the parser Read more
Source§fn space_before(self) -> SpaceBefore<Self, E>
fn space_before(self) -> SpaceBefore<Self, E>
Ignore the space that always appears before the parser
Source§fn maybe_space_before(self) -> MaybeSpaceBefore<Self, E>
fn maybe_space_before(self) -> MaybeSpaceBefore<Self, E>
Ignore the space that might appear before the parser
Source§fn space_around(self) -> SpaceAround<Self, E>
fn space_around(self) -> SpaceAround<Self, E>
Ignore the space that always appears before and after the parser
Source§fn maybe_space_around(self) -> MaybeSpaceAround<Self, E>
fn maybe_space_around(self) -> MaybeSpaceAround<Self, E>
Ignore the space that might appear before or after the parser Read more
Source§impl<E, P> TextParserExt<E> for P
impl<E, P> TextParserExt<E> for P
Source§fn copy_string(self) -> StringMap<Self, E>
fn copy_string(self) -> StringMap<Self, E>
Convert the list of characters into a string within a parser Read more
Source§fn str_condition<F: Fn(&str) -> bool>(self, f: F) -> StrCondition<Self, F, E>
fn str_condition<F: Fn(&str) -> bool>(self, f: F) -> StrCondition<Self, F, E>
Only parse successfully if there is no text remaining in the input after a parse Read more