pub struct OptionalParser(/* private fields */);Implementations§
Source§impl OptionalParser
impl OptionalParser
pub fn new(parser: ParserHandle) -> Self
Trait Implementations§
Source§impl Clone for OptionalParser
impl Clone for OptionalParser
Source§fn clone(&self) -> OptionalParser
fn clone(&self) -> OptionalParser
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 moreSource§impl Parser for OptionalParser
impl Parser for OptionalParser
fn parse<'a>( &self, registry: &ParserRegistry, input: &'a str, ) -> ParseResult<'a>
fn extend(&self, parser: ParserHandle)
Auto Trait Implementations§
impl Freeze for OptionalParser
impl !RefUnwindSafe for OptionalParser
impl Send for OptionalParser
impl Sync for OptionalParser
impl Unpin for OptionalParser
impl UnsafeUnpin for OptionalParser
impl !UnwindSafe for OptionalParser
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