1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#![deny(unused_imports)] /** * Struct to store Icon information */ #[derive(Debug, Clone)] #[repr(C)] pub struct IconInfo { pub data: String, pub height: u32, pub width: u32, } impl IconInfo { pub fn new(data: String, height: u32, width: u32) -> Self { Self { data, height, width, } } }