added build status to readme
This commit is contained in:
@@ -82,7 +82,7 @@ dynamic dispatch.
|
|||||||
Let's explain this in code instead of words by implementing our own trait
|
Let's explain this in code instead of words by implementing our own trait
|
||||||
object from these parts:
|
object from these parts:
|
||||||
|
|
||||||
```rust, editable
|
```rust
|
||||||
// A reference to a trait object is a fat pointer: (data_ptr, vtable_ptr)
|
// A reference to a trait object is a fat pointer: (data_ptr, vtable_ptr)
|
||||||
trait Test {
|
trait Test {
|
||||||
fn add(&self) -> i32;
|
fn add(&self) -> i32;
|
||||||
|
|||||||
Reference in New Issue
Block a user