Trait spaik::Subr

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

Required Methods§

source

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

source

fn name(&self) -> &'static str

Trait Implementations§

source§

impl Clone for Box<dyn Subr>

source§

fn clone(&self) -> Box<dyn Subr>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Box<dyn Subr>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Fissile for Box<dyn Subr>

source§

fn type_of() -> NkT

source§

impl IntoLisp for Box<dyn Subr>

source§

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

source§

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

source§

impl Traceable for Box<dyn Subr>

source§

fn trace(&self, _gray: &mut Vec<*mut NkAtom>)

source§

fn update_ptrs(&mut self, _reloc: &PtrMap)

Implementors§