This commit is contained in:
parent
ec0b6ef083
commit
dd6f964a53
@ -176,3 +176,21 @@ version.workspace = true
|
|||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
publish.workspace = true
|
publish.workspace = true
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Basic definitions for `A1`/`A2` (this won't work — you need to alter it)
|
||||||
|
|
||||||
|
```rs
|
||||||
|
trait A1 {
|
||||||
|
fn a1_ref(&self) -> u64;
|
||||||
|
fn a1_mut(&mut self) -> bool;
|
||||||
|
fn a1_move(self) -> Self;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
```rs
|
||||||
|
trait A2 {
|
||||||
|
fn a2_ref(&self) -> u64;
|
||||||
|
fn a2_mut(&mut self) -> bool;
|
||||||
|
fn a2_move(self) -> Self;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user