Initial commit.

This commit is contained in:
rust-lang.xfoss.com
2023-03-27 14:33:48 +08:00
commit cf2b9a266c
266 changed files with 23587 additions and 0 deletions

8
string_demo/Cargo.toml Normal file
View File

@@ -0,0 +1,8 @@
[package]
name = "string_demo"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

11
string_demo/src/main.rs Normal file
View File

@@ -0,0 +1,11 @@
fn main() {
let s = "नमस्ते";
for c in s.chars() {
println!("{}", c);
}
for b in s.bytes() {
println!("{}", b);
}
}