1 2 3 4 5 6 7 8
#[derive(derive_more::From)] #[from((i16, i16, i16))] struct Point { x: i32, y: i32, } fn main() {}