pub struct WrappedRoot {
pub start_of_input: Symbol,
pub inner_root: Symbol,
pub end_of_input: Symbol,
pub root: Symbol,
}Expand description
We have a method for adding “wrapped” roots in the form:
root ::= start_of_input ~ inner_root ~ end_of_input.
See fn wrap_input.
Fields§
§start_of_input: SymbolFirst symbol in the wrapping rule.
inner_root: SymbolSecond symbol in the wrapping rule.
end_of_input: SymbolThird symbol in the wrapping rule.
root: SymbolThe LHS of the wrapping rule.
Trait Implementations§
Source§impl Clone for WrappedRoot
impl Clone for WrappedRoot
Source§fn clone(&self) -> WrappedRoot
fn clone(&self) -> WrappedRoot
Returns a duplicate 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 moreSource§impl Debug for WrappedRoot
impl Debug for WrappedRoot
impl Copy for WrappedRoot
Auto Trait Implementations§
impl Freeze for WrappedRoot
impl RefUnwindSafe for WrappedRoot
impl Send for WrappedRoot
impl Sync for WrappedRoot
impl Unpin for WrappedRoot
impl UnwindSafe for WrappedRoot
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