lispify 0.1.0

Pretty print lisp
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::Lisp;

/// A trait for converting a type into a lisp data structure
pub trait Lispify {
    /// The output type
    type Output: Into<Lisp>;
    /// Convert `self` into a lisp data structure
    fn lispify(&self) -> Self::Output;
}

impl Lispify for Lisp {
    type Output = Lisp;

    fn lispify(&self) -> Self::Output {
        self.clone()
    }
}