Struct rustlr::zc_parser::ZCRProduction
source · pub struct ZCRProduction<AT: Default, ET: Default> {
pub lhs: &'static str,
pub Ruleaction: fn(_: &mut ZCParser<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. Replaces crate::RProduction for new parsers since version 0.2.0
Fields§
§lhs: &'static str
§Ruleaction: fn(_: &mut ZCParser<AT, ET>) -> AT
Implementations§
source§impl<AT: Default, ET: Default> ZCRProduction<AT, ET>
impl<AT: Default, ET: Default> ZCRProduction<AT, ET>
pub fn new_skeleton(lh: &'static str) -> ZCRProduction<AT, ET>
Trait Implementations§
Auto Trait Implementations§
impl<AT, ET> Freeze for ZCRProduction<AT, ET>
impl<AT, ET> RefUnwindSafe for ZCRProduction<AT, ET>
impl<AT, ET> Send for ZCRProduction<AT, ET>
impl<AT, ET> Sync for ZCRProduction<AT, ET>
impl<AT, ET> Unpin for ZCRProduction<AT, ET>
impl<AT, ET> UnwindSafe for ZCRProduction<AT, ET>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)