use extend::ext; #[ext] impl Option { fn foo() -> usize { 1 } } #[ext] impl Option { fn bar() -> i32 { 1 } } fn main() {}