Struct rustlr::base_parser::BaseProduction
source · pub struct BaseProduction<'t, AT: Default, ET: Default, TT: Tokenizer<'t, AT>> {
pub lhs: &'static str,
pub Ruleaction: fn(_: &mut BaseParser<'t, AT, ET, TT>) -> AT,
}
Expand description
this structure is only exported because it is required by the generated parsers. There is no reason to use it in other programs. Replaces crate::RProduction for new parsers since version 0.2.0
Fields§
§lhs: &'static str
§Ruleaction: fn(_: &mut BaseParser<'t, AT, ET, TT>) -> AT
Implementations§
source§impl<'t, AT: Default, ET: Default, TT: Tokenizer<'t, AT>> BaseProduction<'t, AT, ET, TT>
impl<'t, AT: Default, ET: Default, TT: Tokenizer<'t, AT>> BaseProduction<'t, AT, ET, TT>
pub fn new_skeleton(lh: &'static str) -> BaseProduction<'t, AT, ET, TT>
Trait Implementations§
source§impl<'t, AT: Clone + Default, ET: Clone + Default, TT: Clone + Tokenizer<'t, AT>> Clone for BaseProduction<'t, AT, ET, TT>
impl<'t, AT: Clone + Default, ET: Clone + Default, TT: Clone + Tokenizer<'t, AT>> Clone for BaseProduction<'t, AT, ET, TT>
source§fn clone(&self) -> BaseProduction<'t, AT, ET, TT>
fn clone(&self) -> BaseProduction<'t, AT, ET, TT>
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 moreAuto Trait Implementations§
impl<'t, AT, ET, TT> Freeze for BaseProduction<'t, AT, ET, TT>
impl<'t, AT, ET, TT> RefUnwindSafe for BaseProduction<'t, AT, ET, TT>
impl<'t, AT, ET, TT> Send for BaseProduction<'t, AT, ET, TT>
impl<'t, AT, ET, TT> Sync for BaseProduction<'t, AT, ET, TT>
impl<'t, AT, ET, TT> Unpin for BaseProduction<'t, AT, ET, TT>
impl<'t, AT, ET, TT> UnwindSafe for BaseProduction<'t, AT, ET, TT>
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