Struct rustc_mir::dataflow::DebugFormatted[][src]

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.

Methods

impl DebugFormatted
[src]

🔬 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?

Trait Implementations

impl Debug for DebugFormatted
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for DebugFormatted

impl Sync for DebugFormatted