1 2 3 4 5 6 7 8
#[derive(Debug)] pub struct CanvasProps<'a> { pub name: &'a str, pub width: u32, pub height: u32, } pub static A4 : CanvasProps = CanvasProps { name: "A4 1:1", width: 2975, height: 4210 };
1 2 3 4 5 6 7 8
#[derive(Debug)] pub struct CanvasProps<'a> { pub name: &'a str, pub width: u32, pub height: u32, } pub static A4 : CanvasProps = CanvasProps { name: "A4 1:1", width: 2975, height: 4210 };