dinomug to Programmer Humor · 3 years agoHow we see strings Rust/Cimagemessage-square13fedilinkarrow-up154arrow-down10
arrow-up154arrow-down1imageHow we see strings Rust/Cdinomug to Programmer Humor · 3 years agomessage-square13fedilink
minus-squarenutomicAlinkfedilinkarrow-up5·3 years agoGood explanation. However, OsString is not necessarily valid UTF-8/UTF-16 (in thay case, it could simply be String). The docs describe it pretty well. https://doc.rust-lang.org/std/ffi/struct.OsString.html
Good explanation. However,
OsString
is not necessarily valid UTF-8/UTF-16 (in thay case, it could simply beString
). The docs describe it pretty well.https://doc.rust-lang.org/std/ffi/struct.OsString.html