pub struct AlternationParser { /* private fields */ }
Implementations§
Source§impl AlternationParser
impl AlternationParser
pub fn with(self, parser: ParserHandle) -> Self
pub fn append(&mut self, parser: ParserHandle)
pub fn prepend(&mut self, parser: ParserHandle)
Trait Implementations§
Source§impl Clone for AlternationParser
impl Clone for AlternationParser
Source§fn clone(&self) -> AlternationParser
fn clone(&self) -> AlternationParser
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 Default for AlternationParser
impl Default for AlternationParser
Source§fn default() -> AlternationParser
fn default() -> AlternationParser
Returns the “default value” for a type. Read more
Source§impl FromIterator<Arc<dyn Parser>> for AlternationParser
impl FromIterator<Arc<dyn Parser>> for AlternationParser
Source§fn from_iter<T: IntoIterator<Item = ParserHandle>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = ParserHandle>>(iter: T) -> Self
Creates a value from an iterator. Read more
Source§impl Parser for AlternationParser
impl Parser for AlternationParser
fn parse<'a>( &self, registry: &ParserRegistry, input: &'a str, ) -> ParseResult<'a>
fn extend(&self, parser: ParserHandle)
Auto Trait Implementations§
impl Freeze for AlternationParser
impl !RefUnwindSafe for AlternationParser
impl Send for AlternationParser
impl Sync for AlternationParser
impl Unpin for AlternationParser
impl !UnwindSafe for AlternationParser
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