From 96ad460dade7172de139d8154d439f3d09ac6769 Mon Sep 17 00:00:00 2001 From: Lars Wrenger Date: Sun, 13 Oct 2024 12:52:39 +0200 Subject: [PATCH] :pencil: Document Copy and Clone impl --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7795157..50a3808 100644 --- a/README.md +++ b/README.md @@ -371,7 +371,7 @@ assert_eq!(my_be_bitfield.into_bits().to_be_bytes(), [0x23, 0x41]); ## Automatic Trait Implementations -This macro automatically creates a suitable `fmt::Debug` and `Default` implementations similar to the ones created for normal structs by `#[derive(Debug, Default)]`. +Besides implementing `Clone` and `Copy`, this macro automatically creates a suitable `fmt::Debug` and `Default` implementations similar to the ones created for normal structs by `#[derive(Debug, Default)]`. You can disable this with the extra `debug` and `default` arguments. ```rust