disp 0.1.1

derive Display from Debug
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented1 out of 2 items with examples
  • Size
  • Source code size: 4.12 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 269.32 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 6s Average build duration of successful builds.
  • all releases: 6s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • btwiuse

disp

crates.io Documentation Build Status

derive Display for types that implement Debug

Example

mod hello {
    use std::fmt::Display;

    #[derive(Debug, disp::Display)]
    pub struct Hello {}
}

fn main() {
    let hello = hello::Hello {};
    println!("Debug: {hello:?}, world!");
    println!("Display: {hello}, world!");
}

Output:

Debug: Hello, world!
Display: Hello, world!