📜  字符串上的锈循环 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:24.249000             🧑  作者: Mango

代码示例1
let hello = "नमस्ते";
// Characters
for c in hello.chars() {
    println!("{}", c);
}
// Bytes
for b in hello.bytes() {
    println!("{}", b);
}