fn main() { println!("Hello, world!"); } struct Solution; impl Solution { pub fn is_palindrome(mut s: String) -> bool { let str: Vec = unsafe { s.as_bytes_mut() }.iter_mut().filter(|x| x.is_ascii_alphanumeric()).map(|x| x.to_ascii_lowercase()).collect(); str.iter().take(str.len() / 2).eq(str.iter().rev().take(str.len() / 2)) } }