pub struct CombineVec<P1, P2> { /* private fields */ }
Trait Implementations§
Source§impl<RDF, P1, P2, A> RDFNodeParse<RDF> for CombineVec<P1, P2>where
RDF: FocusRDF,
P1: RDFNodeParse<RDF, Output = Vec<A>>,
P2: RDFNodeParse<RDF, Output = Vec<A>>,
impl<RDF, P1, P2, A> RDFNodeParse<RDF> for CombineVec<P1, P2>where
RDF: FocusRDF,
P1: RDFNodeParse<RDF, Output = Vec<A>>,
P2: RDFNodeParse<RDF, Output = Vec<A>>,
Source§fn parse_impl(&mut self, rdf: &mut RDF) -> PResult<Vec<A>>
fn parse_impl(&mut self, rdf: &mut RDF) -> PResult<Vec<A>>
Parses the current focus node without modifying the state
fn by_ref(&mut self) -> ByRef<'_, Self>where
Self: Sized,
Source§fn and_then<F, O, E>(self, f: F) -> AndThen<Self, F>
fn and_then<F, O, E>(self, f: F) -> AndThen<Self, F>
Parses with
self
and applies f
on the result if self
parses successfully.
f
may optionally fail with an error which is automatically converted to a RDFParseError
. Read moreSource§fn and<P2>(self, parser: P2) -> (Self, P2)where
Self: Sized,
P2: RDFNodeParse<RDF>,
fn and<P2>(self, parser: P2) -> (Self, P2)where
Self: Sized,
P2: RDFNodeParse<RDF>,
Parses
self
followed by p
.
Succeeds if both parsers succeed, otherwise fails.
Returns a tuple with both values on success. Read moreSource§fn then<N, F>(self, f: F) -> Then<Self, F>
fn then<N, F>(self, f: F) -> Then<Self, F>
Parses using
self
and then passes the value to f
which returns a parser used to parse
the rest of the input.Source§fn then_ref<N, F>(self, f: F) -> ThenRef<Self, F>
fn then_ref<N, F>(self, f: F) -> ThenRef<Self, F>
Parses using
self
and then passes a reference to the value to f
which returns a parser used to parse
the rest of the input.Source§fn then_mut<N, F>(self, f: F) -> ThenMut<Self, F>
fn then_mut<N, F>(self, f: F) -> ThenMut<Self, F>
Parses using
self
and then passes a reference to the mutable value to f
which returns a parser used to parse
the rest of the input. Read moreSource§fn or<P2>(self, parser: P2) -> Or<Self, P2>
fn or<P2>(self, parser: P2) -> Or<Self, P2>
Returns a parser which attempts to parse using
self
. If self
fails then it attempts parser
. Read moreAuto Trait Implementations§
impl<P1, P2> Freeze for CombineVec<P1, P2>
impl<P1, P2> RefUnwindSafe for CombineVec<P1, P2>where
P1: RefUnwindSafe,
P2: RefUnwindSafe,
impl<P1, P2> Send for CombineVec<P1, P2>
impl<P1, P2> Sync for CombineVec<P1, P2>
impl<P1, P2> Unpin for CombineVec<P1, P2>
impl<P1, P2> UnwindSafe for CombineVec<P1, P2>where
P1: UnwindSafe,
P2: 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