Function tor_basic_utils::skip_fmt
source · [−]Expand description
Function with the signature of Debug::fmt
that just prints ".."
use educe::Educe;
use tor_basic_utils::skip_fmt;
#[derive(Educe, Default)]
#[educe(Debug)]
struct Wombat {
visible: usize,
#[educe(Debug(method = "skip_fmt"))]
invisible: [u8; 2],
}
assert_eq!( format!("{:?}", &Wombat::default()),
"Wombat { visible: 0, invisible: .. }" );