From 378090acc8f2e98f7b5c3d961d8c25af3e61654f Mon Sep 17 00:00:00 2001 From: Bernardo Uriarte Date: Sun, 4 Sep 2022 18:45:50 +0200 Subject: [PATCH] add documentation back --- components/salsa-2022/src/debug.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/salsa-2022/src/debug.rs b/components/salsa-2022/src/debug.rs index 6571cc19..98149c9a 100644 --- a/components/salsa-2022/src/debug.rs +++ b/components/salsa-2022/src/debug.rs @@ -67,6 +67,10 @@ pub trait DebugWithDb { } } + /// if `include_all_fields` is `false` only identity fields should be read, which means: + /// - for [#\[salsa::input\]](salsa_2022_macros::input) no fields + /// - for [#\[salsa::tracked\]](salsa_2022_macros::tracked) only fields with `#[id]` attribute + /// - for [#\[salsa::interned\]](salsa_2022_macros::interned) any field fn fmt(&self, f: &mut fmt::Formatter<'_>, db: &Db, include_all_fields: bool) -> fmt::Result; }