Trait spaik::IntoLisp

source ·
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.

Required Methods§

source

fn into_pv(self, mem: &mut Arena) -> Result<PV, Error>

Provided Methods§

source

fn into_spv(self, mem: &mut Arena) -> Result<SPV, Error>

Implementations on Foreign Types§

source§

impl IntoLisp for bool

source§

fn into_pv(self, _: &mut Arena) -> Result<PV, Error>

source§

impl IntoLisp for i128

source§

fn into_pv(self, _: &mut Arena) -> Result<PV, Error>

source§

impl IntoLisp for usize

source§

fn into_pv(self, _: &mut Arena) -> Result<PV, Error>

source§

impl IntoLisp for u8

source§

fn into_pv(self, _: &mut Arena) -> Result<PV, Error>

source§

impl<T> IntoLisp for Vec<T>where T: IntoLisp,

source§

fn into_pv(self, mem: &mut Arena) -> Result<PV, Error>

source§

impl IntoLisp for char

source§

fn into_pv(self, _: &mut Arena) -> Result<PV, Error>

source§

impl IntoLisp for Box<dyn Subr>

source§

fn into_pv(self, mem: &mut Arena) -> Result<PV, Error>

source§

impl<T, E> IntoLisp for Result<T, E>where T: IntoLisp, E: Into<Error>,

source§

fn into_pv(self, mem: &mut Arena) -> Result<PV, Error>

source§

impl IntoLisp for u32

source§

fn into_pv(self, _: &mut Arena) -> Result<PV, Error>

source§

impl IntoLisp for f32

source§

fn into_pv(self, _: &mut Arena) -> Result<PV, Error>

source§

impl IntoLisp for i64

source§

fn into_pv(self, _: &mut Arena) -> Result<PV, Error>

source§

impl IntoLisp for u128

source§

fn into_pv(self, _: &mut Arena) -> Result<PV, Error>

source§

impl IntoLisp for String

source§

fn into_pv(self, mem: &mut Arena) -> Result<PV, Error>

source§

impl IntoLisp for i16

source§

fn into_pv(self, _: &mut Arena) -> Result<PV, Error>

source§

impl IntoLisp for u64

source§

fn into_pv(self, _: &mut Arena) -> Result<PV, Error>

source§

impl IntoLisp for &str

source§

fn into_pv(self, mem: &mut Arena) -> Result<PV, Error>

source§

impl IntoLisp for isize

source§

fn into_pv(self, _: &mut Arena) -> Result<PV, Error>

source§

impl IntoLisp for u16

source§

fn into_pv(self, _: &mut Arena) -> Result<PV, Error>

source§

impl IntoLisp for i8

source§

fn into_pv(self, _: &mut Arena) -> Result<PV, Error>

source§

impl IntoLisp for i32

source§

fn into_pv(self, _: &mut Arena) -> Result<PV, Error>

source§

impl IntoLisp for ()

source§

fn into_pv(self, _: &mut Arena) -> Result<PV, Error>

Implementors§