A1/A2 templates

This commit is contained in:
AF 2026-04-09 12:56:17 +00:00
parent e6184cb646
commit 7ecc8c0916
Signed by: alisa
SSH Key Fingerprint: SHA256:vNY4pdIZvO1FYJKHROkdHLtvyopizvZVAEwg9AF6h04

View File

@ -176,3 +176,21 @@ version.workspace = true
edition.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;
}
```