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

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

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

impl Squeeze for str
[src]

[src]

Implementors