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