pub struct Or<NT1, P2> {
pub a: NT1,
pub b: P2,
}Fields§
§a: NT1§b: P2Trait Implementations§
Source§impl<'input, NT1, P2, R, G> Symbol<'input, G> for Or<NT1, P2>
impl<'input, NT1, P2, R, G> Symbol<'input, G> for Or<NT1, P2>
type Output = R
fn pretty_print(&self) -> String
fn parse(&self, grammar: &mut G, start: Input<'input>) -> ParseResult<'input, R>
fn parse_complete( &self, grammar: &mut G, text: &'input str, ) -> Result<Self::Output, Error<'input>>
fn parse_prefix( &self, grammar: &mut G, text: &'input str, ) -> ParseResult<'input, Self::Output>
Auto Trait Implementations§
impl<NT1, P2> Freeze for Or<NT1, P2>
impl<NT1, P2> RefUnwindSafe for Or<NT1, P2>where
NT1: RefUnwindSafe,
P2: RefUnwindSafe,
impl<NT1, P2> Send for Or<NT1, P2>
impl<NT1, P2> Sync for Or<NT1, P2>
impl<NT1, P2> Unpin for Or<NT1, P2>
impl<NT1, P2> UnwindSafe for Or<NT1, P2>where
NT1: UnwindSafe,
P2: 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