fn debug_string<C, T: Debug, W: Write>(
v: &T,
e: &mut Encoder<W>,
_ctx: &mut C,
) -> Result<(), Error<W::Error>>
Expand description
Wrapper for Status (or anything else) that uses the Debug implementation to serialize a string of it
(Of course, someone could just as well implement Serialize for the original type, but it seems fair to assume this can’t be generally assumed to be).
§Panics
Use this only to wrap entities whose Debug output is no more than 16 bytes long!