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
sourceimpl<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
sourceimpl<AT: Clone + Default, ET: Clone + Default> Clone for ZCRProduction<AT, ET>
impl<AT: Clone + Default, ET: Clone + Default> Clone for ZCRProduction<AT, ET>
sourcefn clone(&self) -> ZCRProduction<AT, ET>
fn clone(&self) -> ZCRProduction<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 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
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more