pub struct MatchState<T> {
pub current_item: T,
pub position: usize,
pub total_processed: usize,
}Expand description
Represents the current state during pattern matching.
Fields§
§current_item: TThe current item being matched.
position: usizeThe position in the current match sequence.
total_processed: usizeThe total number of items processed.
Trait Implementations§
Source§impl<T: Clone> Clone for MatchState<T>
impl<T: Clone> Clone for MatchState<T>
Source§fn clone(&self) -> MatchState<T>
fn clone(&self) -> MatchState<T>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<T> Freeze for MatchState<T>where
T: Freeze,
impl<T> RefUnwindSafe for MatchState<T>where
T: RefUnwindSafe,
impl<T> Send for MatchState<T>where
T: Send,
impl<T> Sync for MatchState<T>where
T: Sync,
impl<T> Unpin for MatchState<T>where
T: Unpin,
impl<T> UnwindSafe for MatchState<T>where
T: 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