pub enum Sexp<V> {
Symbol(Cow<'static, str>),
Compound(Vec<Sexp<V>>),
Inlined(V),
}
Expand description
S-expression.
Variants§
Symbol(Cow<'static, str>)
A symbol that needs to be resolved in an environment.
Compound(Vec<Sexp<V>>)
A list, such as (+ 1 2)
.
Inlined(V)
An inlined value.
Pre-resolved values. Be-careful: self-referral inlined values can cause Display or Debug to stack overflow.
Trait Implementations§
Auto Trait Implementations§
impl<V> Freeze for Sexp<V>where
V: Freeze,
impl<V> RefUnwindSafe for Sexp<V>where
V: RefUnwindSafe,
impl<V> Send for Sexp<V>where
V: Send,
impl<V> Sync for Sexp<V>where
V: Sync,
impl<V> Unpin for Sexp<V>where
V: Unpin,
impl<V> UnwindSafe for Sexp<V>where
V: UnwindSafe,
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