We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
skip_if
1 parent 01053db commit 9c7acd0Copy full SHA for 9c7acd0
1 file changed
README.md
@@ -16,8 +16,10 @@ Here is a showcase of all possible field attributes:
16
x: i32,
17
#[debug(skip)]
18
y: i32,
19
- #[debug(with = "hex_fmt")]
+ #[debug(with = hex_fmt)]
20
z: i32,
21
+ #[debug(skip_if = Option::is_none)]
22
+ label: Option<String>,
23
}
24
25
fn hex_fmt<T: fmt::Debug>(n: &T, f: &mut fmt::Formatter) -> fmt::Result {
@@ -32,4 +34,4 @@ Foo {
32
34
x: 42 things,
33
35
z: 0xAB
36
-```
37
+```
0 commit comments