diff options
| author | Boqun Feng <[email protected]> | 2023-02-07 18:52:16 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2023-04-10 03:05:43 +0000 |
| commit | f431c5c581fa176f608ba3fdebb3c1051bad5774 (patch) | |
| tree | 05bf3b7e7e5c343c883c4f5077cddcf3bd3a9568 /rust/macros/helpers.rs | |
| parent | rust: sync: impl {Debug,Display} for {Unique,}Arc (diff) | |
| download | kernel-f431c5c581fa176f608ba3fdebb3c1051bad5774.tar.gz kernel-f431c5c581fa176f608ba3fdebb3c1051bad5774.zip | |
samples: rust: print: Add sample code for Arc printing
This both demonstrates the usage of different print format in Rust and
serves as a selftest for the `Display` and `Debug` implementation of
`Arc` and its friends.
Signed-off-by: Boqun Feng <[email protected]>
Reviewed-by: Björn Roy Baron <[email protected]>
Reviewed-by: Finn Behrens <[email protected]>
Reviewed-by: Vincenzo Palazzo <[email protected]>
Reviewed-by: Gary Guo <[email protected]>
Reviewed-by: Andreas Hindborg <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[ Applied suggestions and reworded for fixing title typos. ]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/macros/helpers.rs')
0 files changed, 0 insertions, 0 deletions
