ドポイント列として見るか選ぶことができます。</p>

<span class='rusttest'>fn main() {
    let hachiko = &quot;忠犬ハチ公&quot;;

for b in hachiko.as_bytes() {
    print!(&quot;{}, &quot;, b);
}

println!(&quot;&quot;);

for c in hachiko.chars() {
    print!(&quot;{}, &quot;, c);
}

println!(&quot;&quot;);
}</span><pre class='rust rust-example-rendered'>
<span class='kw'>let</span> <span class='ident'>hachiko</span> <span class='op'>=</span> <span class='string'>&quot;忠犬ハチ�