pub struct RuleDef {
pub open: Vec<Alt>,
pub close: Vec<Alt>,
}Expand description
One grammar rule: the alts tried when it opens, and when it closes.
Fields§
§open: Vec<Alt>Alts tried, in order, when the rule opens.
close: Vec<Alt>Alts tried, in order, when the rule closes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RuleDef
impl RefUnwindSafe for RuleDef
impl Send for RuleDef
impl Sync for RuleDef
impl Unpin for RuleDef
impl UnsafeUnpin for RuleDef
impl UnwindSafe for RuleDef
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