pub enum Expr {
Lit(Literal),
Var(String),
Bin(BinOp, Box<Expr>, Box<Expr>),
Call {
name: String,
args: Vec<Arg>,
span: ByteSpan,
},
Ref {
path: String,
arg: Box<Expr>,
binds: Vec<(String, Expr)>,
address: Address,
span: ByteSpan,
},
SelfRef {
arg: Box<Expr>,
address: Address,
span: ByteSpan,
},
Indexed {
name: String,
arg: Box<Expr>,
span: ByteSpan,
},
}Expand description
Meaning only: which node a path names lives in graph.rs, so two structurally identical
expressions from different files compare equal, span excluded from Eq. binds holds
an invocation’s named arguments in written order: @lp-def(t, cutoff=800).
Variants§
Lit(Literal)
Var(String)
Bin(BinOp, Box<Expr>, Box<Expr>)
Call
Ref
SelfRef
Indexed
x[i]: a parameter’s signal at sample index i.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Expr
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnsafeUnpin for Expr
impl UnwindSafe for Expr
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