fn main() { println!("Hello, world!"); } struct Solution; impl Solution { pub fn str_str(haystack: String, needle: String) -> i32 { match haystack.find(&needle) { None => -1, Some(e) => e as i32 } } }