Merge branch 'master' into edit
This commit is contained in:
commit
8c499f89ef
|
@ -108,7 +108,9 @@ fn main() {
|
||||||
## T: 'static
|
## T: 'static
|
||||||
As a trait bound, it means the type does not contain any non-static references. Eg. the receiver can hold on to the type for as long as they want and it will never become invalid until they drop it.
|
As a trait bound, it means the type does not contain any non-static references. Eg. the receiver can hold on to the type for as long as they want and it will never become invalid until they drop it.
|
||||||
|
|
||||||
It's important to understand this means that any owned data always passes a `'static `lifetime bound, but a reference to that owned data generally does no.
|
|
||||||
|
It's important to understand this means that any owned data always passes a `'static `lifetime bound, but a reference to that owned data generally does not.
|
||||||
|
|
||||||
|
|
||||||
5,🌟🌟
|
5,🌟🌟
|
||||||
```rust,editable
|
```rust,editable
|
||||||
|
|
|
@ -114,6 +114,6 @@ fn main() {
|
||||||
&mut value => value.push_str(" world!")
|
&mut value => value.push_str(" world!")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
````
|
```
|
||||||
|
|
||||||
> You can find the solutions [here](https://github.com/sunface/rust-by-practice)(under the solutions path), but only use it when you need it
|
> You can find the solutions [here](https://github.com/sunface/rust-by-practice)(under the solutions path), but only use it when you need it
|
||||||
|
|
Loading…
Reference in New Issue