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,
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> Freeze for SeparatedParserState<P, S>
impl<P, S> RefUnwindSafe for SeparatedParserState<P, S>where
<P as Parser>::PartialState: RefUnwindSafe,
<S as Parser>::PartialState: RefUnwindSafe,
<P as Parser>::Output: RefUnwindSafe,
impl<P, S> Send for SeparatedParserState<P, S>where
<P as Parser>::PartialState: Send,
<S as Parser>::PartialState: Send,
<P as Parser>::Output: Sync + Send,
impl<P, S> Sync for SeparatedParserState<P, S>where
<P as Parser>::PartialState: Sync,
<S as Parser>::PartialState: Sync,
<P as Parser>::Output: Sync + Send,
impl<P, S> Unpin for SeparatedParserState<P, S>
impl<P, S> UnwindSafe for SeparatedParserState<P, S>where
<P as Parser>::PartialState: UnwindSafe,
<S as Parser>::PartialState: UnwindSafe,
<P as Parser>::Output: RefUnwindSafe,
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)