#[derive(DebugPls)]
{
// Attributes available to this derive:
#[dbg_pls]
}
Available on crate feature
derive only.Expand description
Derives the standard DebugPls implementation.
Works exactly like Debug
use dbg_pls::{pretty, DebugPls};
#[derive(DebugPls)]
struct Point {
x: i32,
y: i32,
}
let origin = Point { x: 0, y: 0 };
assert_eq!(
format!("The origin is: {}", pretty(&origin)),
"The origin is: Point { x: 0, y: 0 }",
);