pub struct SlotParser { /* private fields */ }
Implementations§
Source§impl SlotParser
impl SlotParser
pub fn new(parser: ParserHandle) -> Self
pub fn parse_error_when_empty(self) -> Self
pub fn has(&self) -> bool
pub fn set(&self, parser: ParserHandle)
pub fn get(&self) -> Option<ParserHandle>
pub fn transform( &self, f: impl FnMut(Option<ParserHandle>) -> Option<ParserHandle>, )
Trait Implementations§
Source§impl Clone for SlotParser
impl Clone for SlotParser
Source§impl Default for SlotParser
impl Default for SlotParser
Source§fn default() -> SlotParser
fn default() -> SlotParser
Returns the “default value” for a type. Read more
Source§impl Parser for SlotParser
impl Parser for SlotParser
fn parse<'a>( &self, registry: &ParserRegistry, input: &'a str, ) -> ParseResult<'a>
fn extend(&self, parser: ParserHandle)
Auto Trait Implementations§
impl !Freeze for SlotParser
impl RefUnwindSafe for SlotParser
impl Send for SlotParser
impl Sync for SlotParser
impl Unpin for SlotParser
impl UnwindSafe for SlotParser
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