Struct kalosm_sample::ChoiceParserState
source · pub struct ChoiceParserState<P1, P2, E1, E2> { /* private fields */ }
Expand description
State of a choice parser.
Implementations§
source§impl<P1, P2, E1, E2> ChoiceParserState<P1, P2, E1, E2>
impl<P1, P2, E1, E2> ChoiceParserState<P1, P2, E1, E2>
Trait Implementations§
source§impl<P1: Clone, P2: Clone, E1: Clone, E2: Clone> Clone for ChoiceParserState<P1, P2, E1, E2>
impl<P1: Clone, P2: Clone, E1: Clone, E2: Clone> Clone for ChoiceParserState<P1, P2, E1, E2>
source§fn clone(&self) -> ChoiceParserState<P1, P2, E1, E2>
fn clone(&self) -> ChoiceParserState<P1, P2, E1, E2>
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: PartialEq, P2: PartialEq, E1: PartialEq, E2: PartialEq> PartialEq for ChoiceParserState<P1, P2, E1, E2>
impl<P1: PartialEq, P2: PartialEq, E1: PartialEq, E2: PartialEq> PartialEq for ChoiceParserState<P1, P2, E1, E2>
source§fn eq(&self, other: &ChoiceParserState<P1, P2, E1, E2>) -> bool
fn eq(&self, other: &ChoiceParserState<P1, P2, E1, E2>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<P1: Copy, P2: Copy, E1: Copy, E2: Copy> Copy for ChoiceParserState<P1, P2, E1, E2>
impl<P1: Eq, P2: Eq, E1: Eq, E2: Eq> Eq for ChoiceParserState<P1, P2, E1, E2>
impl<P1, P2, E1, E2> StructuralPartialEq for ChoiceParserState<P1, P2, E1, E2>
Auto Trait Implementations§
impl<P1, P2, E1, E2> RefUnwindSafe for ChoiceParserState<P1, P2, E1, E2>
impl<P1, P2, E1, E2> Send for ChoiceParserState<P1, P2, E1, E2>
impl<P1, P2, E1, E2> Sync for ChoiceParserState<P1, P2, E1, E2>
impl<P1, P2, E1, E2> Unpin for ChoiceParserState<P1, P2, E1, E2>
impl<P1, P2, E1, E2> UnwindSafe for ChoiceParserState<P1, P2, E1, E2>
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.