pub struct Check<T>(pub T);Expand description
Only checks the provided atom, without progressing.
use minparser::prelude::*;
View::from("a").match_tool(&Check('a')).unwrap()
.match_tool(&'a').unwrap();Tuple Fields§
§0: TTrait Implementations§
impl<T: Copy> Copy for Check<T>
Auto Trait Implementations§
impl<T> Freeze for Check<T>where
T: Freeze,
impl<T> RefUnwindSafe for Check<T>where
T: RefUnwindSafe,
impl<T> Send for Check<T>where
T: Send,
impl<T> Sync for Check<T>where
T: Sync,
impl<T> Unpin for Check<T>where
T: Unpin,
impl<T> UnwindSafe for Check<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