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,
address: Address,
span: ByteSpan,
},
Own {
arg: &'a Expr,
address: Address,
span: ByteSpan,
},
Signal {
name: &'a str,
of: Thunk<'a>,
arg: &'a Expr,
span: ByteSpan,
},
}Expand description
A Read names the child INSTANCE, so this is reachable only past Instances::follow.
Variants§
Lit(&'a Literal)
Name(&'a str)
Bin(BinOp, &'a Expr, &'a Expr)
Call
Read
Own
Signal
x[i]: of, what x is bound to, read at index arg.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more