pub enum SExpr {
Atom(String),
Binding(String, Box<SExpr>),
List(Vec<SExpr>),
}
Expand description
S-expression representation of ISLE source code prior to printing.
Variants§
Atom(String)
Atom is a plain string to be printed.
Binding(String, Box<SExpr>)
A binding for an ISLE structure, e.g. x @ (...)
.
List(Vec<SExpr>)
A parenthesized list of S-expressions, e.g. (x y z)
.
Trait Implementations§
impl Eq for SExpr
impl StructuralPartialEq for SExpr
Auto Trait Implementations§
impl Freeze for SExpr
impl RefUnwindSafe for SExpr
impl Send for SExpr
impl Sync for SExpr
impl Unpin for SExpr
impl UnwindSafe for SExpr
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