pub enum SequenceParserState<P1, P2, O1> {
FirstParser(P1),
SecondParser(P2, O1),
}
Expand description
State of a sequence parser.
Variants§
FirstParser(P1)
The first parser is incomplete.
SecondParser(P2, O1)
The first parser is finished, and the second parser is incomplete.
Implementations§
source§impl<P1, P2, O1> SequenceParserState<P1, P2, O1>
impl<P1, P2, O1> SequenceParserState<P1, P2, O1>
Trait Implementations§
source§impl<P1: Clone, P2: Clone, O1: Clone> Clone for SequenceParserState<P1, P2, O1>
impl<P1: Clone, P2: Clone, O1: Clone> Clone for SequenceParserState<P1, P2, O1>
source§fn clone(&self) -> SequenceParserState<P1, P2, O1>
fn clone(&self) -> SequenceParserState<P1, P2, O1>
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<P1: Default, P2, O1> Default for SequenceParserState<P1, P2, O1>
impl<P1: Default, P2, O1> Default for SequenceParserState<P1, P2, O1>
source§impl<P1: PartialEq, P2: PartialEq, O1: PartialEq> PartialEq for SequenceParserState<P1, P2, O1>
impl<P1: PartialEq, P2: PartialEq, O1: PartialEq> PartialEq for SequenceParserState<P1, P2, O1>
source§fn eq(&self, other: &SequenceParserState<P1, P2, O1>) -> bool
fn eq(&self, other: &SequenceParserState<P1, P2, O1>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<P1: Copy, P2: Copy, O1: Copy> Copy for SequenceParserState<P1, P2, O1>
impl<P1: Eq, P2: Eq, O1: Eq> Eq for SequenceParserState<P1, P2, O1>
impl<P1, P2, O1> StructuralPartialEq for SequenceParserState<P1, P2, O1>
Auto Trait Implementations§
impl<P1, P2, O1> RefUnwindSafe for SequenceParserState<P1, P2, O1>
impl<P1, P2, O1> Send for SequenceParserState<P1, P2, O1>
impl<P1, P2, O1> Sync for SequenceParserState<P1, P2, O1>
impl<P1, P2, O1> Unpin for SequenceParserState<P1, P2, O1>
impl<P1, P2, O1> UnwindSafe for SequenceParserState<P1, P2, O1>
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.