pub struct ParseRDFList<P> { /* private fields */ }
Trait Implementations§
Source§impl<P: Clone> Clone for ParseRDFList<P>
impl<P: Clone> Clone for ParseRDFList<P>
Source§fn clone(&self) -> ParseRDFList<P>
fn clone(&self) -> ParseRDFList<P>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<RDF, P, A> RDFNodeParse<RDF> for ParseRDFList<P>where
RDF: FocusRDF,
P: RDFNodeParse<RDF, Output = A>,
impl<RDF, P, A> RDFNodeParse<RDF> for ParseRDFList<P>where
RDF: FocusRDF,
P: RDFNodeParse<RDF, Output = 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 moreimpl<P: Copy> Copy for ParseRDFList<P>
Auto Trait Implementations§
impl<P> Freeze for ParseRDFList<P>where
P: Freeze,
impl<P> RefUnwindSafe for ParseRDFList<P>where
P: RefUnwindSafe,
impl<P> Send for ParseRDFList<P>where
P: Send,
impl<P> Sync for ParseRDFList<P>where
P: Sync,
impl<P> Unpin for ParseRDFList<P>where
P: Unpin,
impl<P> UnwindSafe for ParseRDFList<P>where
P: 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