pub(crate) struct DebugFormatted(String);
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
DebugFormatted
encapsulates the "{:?}" rendering of some
arbitrary value. This way: you pay cost of allocating an extra
string (as well as that of rendering up-front); in exchange, you
don't have to hand over ownership of your value or deal with
borrowing it.
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Formats the value using the given formatter. Read more