From dd6f964a53d59de46bbf010302cf60a8e4371f94 Mon Sep 17 00:00:00 2001 From: timofey Date: Wed, 21 Feb 2024 16:16:39 +0000 Subject: [PATCH] A1/A2 templates --- src/exercises/multiple_blanket.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/exercises/multiple_blanket.md b/src/exercises/multiple_blanket.md index fb8b36b..2c0f475 100644 --- a/src/exercises/multiple_blanket.md +++ b/src/exercises/multiple_blanket.md @@ -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; +} +```