The third option is to capture the return of the function in a variable and use if let : let a = contains_char("Rust in action", 'a'); if ...
確定! 回上一頁