Skip to content
Commit f431c5c5 authored by Boqun Feng's avatar Boqun Feng Committed by Miguel Ojeda
Browse files

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: default avatarBoqun Feng <boqun.feng@gmail.com>
Reviewed-by: default avatarBjörn Roy Baron <bjorn3_gh@protonmail.com>
Reviewed-by: default avatarFinn Behrens <fin@nyantec.com>
Reviewed-by: default avatarVincenzo Palazzo <vincenzopalazzodev@gmail.com>
Reviewed-by: default avatarGary Guo <gary@garyguo.net>
Reviewed-by: default avatarAndreas Hindborg <a.hindborg@samsung.com>
Link: https://lore.kernel.org/r/20230207185216.1314638-3-boqun.feng@gmail.com


[ Applied suggestions and reworded for fixing title typos. ]
Signed-off-by: default avatarMiguel Ojeda <ojeda@kernel.org>
parent 00140a83
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment