pub struct CheckTool<T>(pub T);Expand description
Only checks the provided tool, without progressing.
use minparser::view::ViewFile;
use minparser::tools::CheckTool;
ViewFile::new_default("a").match_tool(CheckTool('a')).unwrap()
.match_tool(CheckTool::<fn(&char) -> bool>(char::is_ascii)).unwrap();Tuple Fields§
§0: TTrait Implementations§
impl<T: Copy> Copy for CheckTool<T>
Auto Trait Implementations§
impl<T> Freeze for CheckTool<T>where
T: Freeze,
impl<T> RefUnwindSafe for CheckTool<T>where
T: RefUnwindSafe,
impl<T> Send for CheckTool<T>where
T: Send,
impl<T> Sync for CheckTool<T>where
T: Sync,
impl<T> Unpin for CheckTool<T>where
T: Unpin,
impl<T> UnwindSafe for CheckTool<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