From 99728c217b68ae0ffa7462746aceaaab0bac4e30 Mon Sep 17 00:00:00 2001 From: ogios <2134692955@qq.com> Date: Fri, 28 Jun 2024 19:24:21 +0800 Subject: [PATCH] Add table of contents for traits in README --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 5f266ac..5806b27 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,19 @@ default-features = false ## Traits +- [Debug](#debug) +- [Clone](#clone) +- [Copy](#copy) +- [PartialEq](#partialeq) +- [Eq](#eq) +- [PartialOrd](#partialord) +- [Ord](#ord) +- [Hash](#hash) +- [Default](#default) +- [Deref](#deref) +- [DerefMut](#derefmut) +- [Into](#into) + #### Debug Use `#[derive(Educe)]` and `#[educe(Debug)]` to implement the `Debug` trait for a struct, enum, or union. This allows you to modify the names of your types, variants, and fields. You can also choose to ignore specific fields or set a method to replace the `Debug` trait. Additionally, you have the option to format a struct as a tuple and vice versa.