CensorIter

Trait CensorIter 

Source
pub trait CensorIter {
    type Iterator: Iterator<Item = char>;

    // Required method
    fn censor(self) -> Self::Iterator;
}
Available on crate feature censor only.
Expand description

CensorIter makes it easy to sanitize an arbitrary Iterator<Item=char> by calling .censor().

Required Associated Types§

Required Methods§

Source

fn censor(self) -> Self::Iterator

Iteratively censor characters, yielding (except accents) those that are not inappropriate, and replacing those that are with '*'.

Implementors§

Source§

impl<I: Iterator<Item = char> + Clone> CensorIter for I