[][src]Trait spaik::subrs::Subr

pub unsafe trait Subr: CloneSubr {
    fn call(&mut self, vm: &mut R8VM<'_>, args: &[PV]) -> Result<PV, Error>;
fn name(&self) -> &'static str; }

SAFETY: The call method may be passed an arg reference into the, vm stack (which it gets a mutable reference to.) The call method may not access args after mutating vm.

    This invariant is ensured by the lispy proc-macro, which you
    should use instead of implementing Subr yourself.

Required methods

fn call(&mut self, vm: &mut R8VM<'_>, args: &[PV]) -> Result<PV, Error>[src]

fn name(&self) -> &'static str[src]

Loading content...

Implementors

impl Subr for VLambda[src]

impl Subr for my_function_obj[src]

Loading content...