pub struct InfixView<'a> {
pub name: &'a str,
pub args: &'a [ArgumentSlot],
pub left: NodeId,
pub right: NodeId,
}Expand description
A read-only view of an infix command node for use in rule matching.
Fields§
§name: &'a strThe command name without the leading backslash.
args: &'a [ArgumentSlot]The explicit argument slots parsed for this command.
left: NodeIdThe left operand subtree collected by the parser.
right: NodeIdThe right operand subtree collected by the parser.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for InfixView<'a>
impl<'a> RefUnwindSafe for InfixView<'a>
impl<'a> Send for InfixView<'a>
impl<'a> Sync for InfixView<'a>
impl<'a> Unpin for InfixView<'a>
impl<'a> UnsafeUnpin for InfixView<'a>
impl<'a> UnwindSafe for InfixView<'a>
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