[][src]Enum litto::expr::Sexp

pub enum Sexp<V> {
    Symbol(Cow<'static, str>),
    Compound(Vec<Sexp<V>>),
    Inlined(V),
}

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

impl<V: Clone> Clone for Sexp<V>[src]

impl<V: Debug> Debug for Sexp<V>[src]

impl<V: Display> Display for Sexp<V>[src]

impl<V: 'static> Trace for Sexp<V>[src]

Auto Trait Implementations

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.