Trait array_tool::string::Squeeze[][src]

pub trait Squeeze {
    fn squeeze(&self, targets: &'static str) -> String;
}
Expand description

Squeeze - squeezes duplicate characters down to one each

Required methods

Example

use array_tool::string::Squeeze;

"yellow moon".squeeze("");

Output

"yelow mon"

Implementations on Foreign Types

Implementors