#[cfg(feature = "hex")]
mod hex_impl;
mod redact_contents;
#[cfg(feature = "hex")]
pub use hex_impl::{FullHex, TruncHex};
pub use redact_contents::RedactContents;
#[allow(clippy::missing_errors_doc)]
pub trait Formatter {
fn debug_fmt(
bytes: &[u8],
type_name: &str,
f: &mut std::fmt::Formatter<'_>,
) -> std::fmt::Result;
fn display_fmt(
bytes: &[u8],
type_name: &str,
f: &mut std::fmt::Formatter<'_>,
) -> std::fmt::Result {
Self::debug_fmt(bytes, type_name, f)
}
}