pub struct TrueParser;Expand description
Matches the empty string, therefore it always matches.
use minparser::view::ViewFile;
let st = "My data ";
ViewFile::new_default(st).match_tool(minparser::tools::TrueParser).unwrap().match_tool("My data ").unwrap();Trait Implementations§
Source§impl Clone for TrueParser
impl Clone for TrueParser
Source§fn clone(&self) -> TrueParser
fn clone(&self) -> TrueParser
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 Debug for TrueParser
impl Debug for TrueParser
Source§impl Default for TrueParser
impl Default for TrueParser
Source§fn default() -> TrueParser
fn default() -> TrueParser
Returns the “default value” for a type. Read more
Source§impl ParseTool for TrueParser
impl ParseTool for TrueParser
impl Copy for TrueParser
Auto Trait Implementations§
impl Freeze for TrueParser
impl RefUnwindSafe for TrueParser
impl Send for TrueParser
impl Sync for TrueParser
impl Unpin for TrueParser
impl UnwindSafe for TrueParser
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