Skip to main content

redacted_debug

Function redacted_debug 

Source
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 implement Debug.

§Parameters

  • value: The value whose debug representation must be hidden.

§Returns

A wrapper borrowing value and rendering the fixed redaction marker.