|
1.
|
|
|
# Conclusion
|
|
|
type: Plain text
|
|
|
|
(no translation yet)
|
|
|
|
Located in
src/doc/guide-lifetimes.md:560 src/doc/guide.md:5404
|
|
2.
|
|
|
```{rust} let x = 5i; let y = &x;
|
|
|
type: Plain text
|
|
|
|
(no translation yet)
|
|
|
|
Located in
src/doc/guide-pointers.md:257 src/doc/guide.md:3405
|
|
3.
|
|
|
```{rust} let mut x = 5i; let y = &mut x; ```
|
|
|
type: Plain text
|
|
|
|
(no translation yet)
|
|
|
|
Located in
src/doc/guide-pointers.md:316 src/doc/guide.md:3440
|
|
4.
|
|
|
```{rust} let x = 5i; let y = &x; let z = &x; ```
|
|
|
type: Plain text
|
|
|
|
(no translation yet)
|
|
|
|
Located in
src/doc/guide-pointers.md:331 src/doc/guide.md:3433
|
|
5.
|
|
|
Rust has two main types of strings: `&str` and `String`.
|
|
|
type: Plain text
|
|
|
|
(no translation yet)
|
|
|
|
Located in
src/doc/guide-strings.md:14 src/doc/guide.md:1460
|
|
6.
|
|
|
```{rust} let string = "Hello there."; ```
|
|
|
type: Plain text
|
|
|
|
(no translation yet)
|
|
|
|
Located in
src/doc/guide-strings.md:23 src/doc/guide.md:1467
|
|
7.
|
|
|
```{rust} let mut s = "Hello".to_string(); println!("{}", s);
|
|
|
type: Plain text
|
|
|
|
(no translation yet)
|
|
|
|
Located in
src/doc/guide-strings.md:47 src/doc/guide.md:1479
|
|
8.
|
|
|
s.push_str(", world."); println!("{}", s); ```
|
|
|
type: Plain text
|
|
|
|
(no translation yet)
|
|
|
|
Located in
src/doc/guide-strings.md:51 src/doc/guide.md:1483
|
|
9.
|
|
|
```{rust}
fn takes_slice(slice: &str) {
println!("Got: {}", slice);
}
|
|
|
type: Plain text
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
src/doc/guide-strings.md:58 src/doc/guide.md:1490
|
|
10.
|
|
|
fn main() {
let s = "Hello".to_string();
takes_slice(s.as_slice());
}
```
|
|
|
type: Plain text
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
src/doc/guide-strings.md:64 src/doc/guide.md:1496
|