Skip to main content

mask_bounded

Function mask_bounded 

Source
pub fn mask_bounded(text: &str, max_chars: usize) -> String
Expand description

The first max_chars characters of text with everything above hidden, for a caller that shows only the start of a long string. The whole text is masked first and cut after, so no number or token that straddles the cut can show its first characters.