You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This macro automatically creates a suitable `fmt::Debug` and `Default` implementations similar to the ones created for normal structs by `#[derive(Debug, Default)]`.
375
373
You can disable this with the extra `debug` and `default` arguments.
@@ -397,9 +395,10 @@ let val = CustomDebug::default();
397
395
println!("{val:?}")
398
396
```
399
397
400
-
## `defmt::Format`
398
+
### Support for`defmt::Format`
401
399
402
-
This macro can automatically implement a `defmt::Format` that mirrors the default `fmt::Debug` implementation by passing the extra `defmt` argument. This implementation requires the defmt crate to be available as `defmt`, and has the same rules and caveats as `#[derive(defmt::Format)]`.
400
+
This macro can automatically implement a `defmt::Format` that mirrors the default `fmt::Debug` implementation by passing the extra `defmt` argument.
401
+
This implementation requires the defmt crate to be available as `defmt`, and has the same rules and caveats as `#[derive(defmt::Format)]`.
403
402
404
403
```rust
405
404
usebitfield_struct::bitfield;
@@ -408,4 +407,17 @@ use bitfield_struct::bitfield;
0 commit comments