jit.rs icon indicating copy to clipboard operation
jit.rs copied to clipboard

Add macro to auto-implement `Compile` for enums

Open TomBebbington opened this issue 10 years ago • 0 comments

#[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.

TomBebbington avatar Feb 08 '15 17:02 TomBebbington