1 2 3 4 5 6 7 8
// @generated by xtask expand_gen use archmage::autoversion; struct P { f: f32 } impl P { #[autoversion] fn apply(&self, x: f32) -> f32 { x * self.f } } fn main() {}