Rust solution
\nimpl Solution {\n    pub fn divide_string(mut s: String, k: i32, fill: char) -> Vec<String> {\n        let l = s.len();\n        let ku = k as usize;\n       
```\nimpl Solution {\n    pub fn divide_string(mut s: String, k: i32, fill: char) -> Vec<String> {\n        let l = s.len();\n        let ku = k as usize;\n        let rem = l % ku;\n        let parts = l / ku + (rem > 0) as usize;\n        let mut res = Vec::with_capacity(parts);\n\n        (0..ku - rem).for_each(|_| s.push(fill));\n        for i in 0..parts {\n            res.push(s[i * ku..(i + 1) * ku].to_string());\n        }\n        res\n    }\n}\n```
['Rust']