Struct rustlr::runtime_parser::RProduction
source · [−]pub struct RProduction<AT: Default, ET: Default> {
pub lhs: &'static str,
pub Ruleaction: fn(_: &mut RuntimeParser<AT, ET>) -> 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.
Fields
lhs: &'static str
Ruleaction: fn(_: &mut RuntimeParser<AT, ET>) -> AT
Implementations
sourceimpl<AT: Default, ET: Default> RProduction<AT, ET>
impl<AT: Default, ET: Default> RProduction<AT, ET>
pub fn new_skeleton(lh: &'static str) -> RProduction<AT, ET>
Trait Implementations
sourceimpl<AT: Clone + Default, ET: Clone + Default> Clone for RProduction<AT, ET>
impl<AT: Clone + Default, ET: Clone + Default> Clone for RProduction<AT, ET>
sourcefn clone(&self) -> RProduction<AT, ET>
fn clone(&self) -> RProduction<AT, ET>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<AT, ET> RefUnwindSafe for RProduction<AT, ET>
impl<AT, ET> Send for RProduction<AT, ET>
impl<AT, ET> Sync for RProduction<AT, ET>
impl<AT, ET> Unpin for RProduction<AT, ET>
impl<AT, ET> UnwindSafe for RProduction<AT, ET>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more