jit.rs
jit.rs copied to clipboard
Add macro to auto-implement `Compile` for enums
#[jit]
pub enum Number {
Int(i32),
Float(f64)
}
This should generate a Compile implementation, and some enums from the standard library such as Option
and Result
should be given Compile implementations.