pub enum Node<'a> {
Lit(&'a Literal),
Name(&'a str),
Bin(BinOp, &'a Expr, &'a Expr),
Call {
name: &'a str,
args: &'a [Arg],
span: ByteSpan,
},
Read {
path: &'a str,
arg: &'a Expr,
span: ByteSpan,
},
Own {
arg: &'a Expr,
span: ByteSpan,
},
}Expand description
A Read names the child INSTANCE, so this is reachable only past Instances::follow.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Node<'a>
impl<'a> RefUnwindSafe for Node<'a>
impl<'a> Send for Node<'a>
impl<'a> Sync for Node<'a>
impl<'a> Unpin for Node<'a>
impl<'a> UnsafeUnpin for Node<'a>
impl<'a> UnwindSafe for Node<'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