Struct kalosm_sample::SeparatedParserState
source · pub struct SeparatedParserState<P: Parser, S: Parser> { /* private fields */ }
Expand description
State of a repeat parser.
Implementations§
source§impl<P: Parser, S: Parser> SeparatedParserState<P, S>
impl<P: Parser, S: Parser> SeparatedParserState<P, S>
sourcepub fn new(
state: SeparatedItemState<P::PartialState, S::PartialState>,
outputs: Vec<P::Output>
) -> Self
pub fn new( state: SeparatedItemState<P::PartialState, S::PartialState>, outputs: Vec<P::Output> ) -> Self
Create a new repeat parser state.
Trait Implementations§
source§impl<P: Parser, S: Parser> Default for SeparatedParserState<P, S>where
P::PartialState: Default,
impl<P: Parser, S: Parser> Default for SeparatedParserState<P, S>where
P::PartialState: Default,
source§impl<P: PartialEq + Parser, S: PartialEq + Parser> PartialEq for SeparatedParserState<P, S>
impl<P: PartialEq + Parser, S: PartialEq + Parser> PartialEq for SeparatedParserState<P, S>
source§fn eq(&self, other: &SeparatedParserState<P, S>) -> bool
fn eq(&self, other: &SeparatedParserState<P, S>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<P: Eq + Parser, S: Eq + Parser> Eq for SeparatedParserState<P, S>
impl<P: Parser, S: Parser> StructuralPartialEq for SeparatedParserState<P, S>
Auto Trait Implementations§
impl<P, S> RefUnwindSafe for SeparatedParserState<P, S>where
<P as Parser>::Output: RefUnwindSafe,
<P as Parser>::PartialState: RefUnwindSafe,
<S as Parser>::PartialState: RefUnwindSafe,
impl<P, S> Send for SeparatedParserState<P, S>where
<P as Parser>::Output: Send,
<P as Parser>::PartialState: Send,
<S as Parser>::PartialState: Send,
impl<P, S> Sync for SeparatedParserState<P, S>where
<P as Parser>::Output: Sync,
<P as Parser>::PartialState: Sync,
<S as Parser>::PartialState: Sync,
impl<P, S> Unpin for SeparatedParserState<P, S>where
<P as Parser>::Output: Unpin,
<P as Parser>::PartialState: Unpin,
<S as Parser>::PartialState: Unpin,
impl<P, S> UnwindSafe for SeparatedParserState<P, S>where
<P as Parser>::Output: UnwindSafe,
<P as Parser>::PartialState: UnwindSafe,
<S as Parser>::PartialState: 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
§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.