pub const fn redacted_debug<T: ?Sized>(value: &T) -> RedactedDebug<'_, T>Expand description
Wraps a value so debug formatting emits only <redacted>.
The returned wrapper never invokes the value’s Debug implementation.
§Type Parameters
T- Protected value type, which need not implementDebug.
§Parameters
value: The value whose debug representation must be hidden.
§Returns
A wrapper borrowing value and rendering the fixed redaction marker.