Find substring position, in Rust. ... Rust. let i = x.find(y);. i is an Option<usize>. Finds the byte index of y in x (not the character index).
確定! 回上一頁