Redactor

Trait Redactor 

Source
pub trait Redactor {
    // Required method
    fn redact(f: &mut Formatter<'_>) -> Result;
}
Expand description

A Trait to define how a value should be redacted.

Required Methods§

Source

fn redact(f: &mut Formatter<'_>) -> Result

Function called by Display and Debug.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Redactor for Simple

Source§

impl<const SYMBOL: char, const REP: usize> Redactor for Custom<SYMBOL, REP>