pub trait IntoLisp: Sized {
// Required method
fn into_pv(self, mem: &mut Arena) -> Result<PV, Error>;
// Provided method
fn into_spv(self, mem: &mut Arena) -> Result<SPV, Error> { ... }
}
Expand description
The mem
parameter is necessary here, because some of the conversions
may need to do memory allocation.