pub trait PrimitiveSet: Sized {
type Error: From<Error> + Error;
// Required method
fn operate(
&mut self,
memory: &mut Memory<'_>,
primitive: usize,
) -> Result<(), Self::Error>;
}
Expand description
A primitive set.
PrimitiveSet
s provide primitive functionalities, such as
arithmetic and I/O, to Vm
s. Each primitive has its own
identifier.
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.