You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-06-23 09:16:44 +02:00
Clarification in Trait Objects. (#379)
This commit is contained in:
@ -66,7 +66,7 @@ Memory layout after allocating `xs`:
|
|||||||
'- - - - - - - - - - - - - - - - - - - - - - - -'
|
'- - - - - - - - - - - - - - - - - - - - - - - -'
|
||||||
```
|
```
|
||||||
|
|
||||||
Similarly, you need a trait object if you want to return different values
|
Similarly, you need a trait object if you want to return different types
|
||||||
implementing a trait:
|
implementing a trait:
|
||||||
|
|
||||||
```rust,editable
|
```rust,editable
|
||||||
|
Reference in New Issue
Block a user