use std::fmt;
#[derive(Debug)]
-pub struct MyDebug;
+pub struct Inner;
-impl MyDebug {
+impl Inner {
fn our_fmt(&self, _f: &mut fmt::Formatter) -> fmt::Result {
Ok(())
}
#[derive(Educe)]
#[educe(Debug(name = false))]
pub struct Thing {
- #[educe(Debug(method = "MyDebug::our_fmt"))]
- field: MyDebug,
+ #[educe(Debug(method = "Inner::our_fmt"))]
+ field: Inner,
#[educe(Debug(name(Q)))]
other: u32,
}
fn main() {
let a = Thing {
- field: MyDebug,
+ field: Inner,
other: 6,
};
println!("{:?}", &a);