Trait array_tool::string::SubstMarks [] [src]

pub trait SubstMarks {
    fn subst_marks(&self, marks: Vec<usize>, chr: &'static str) -> String;
}

Substitute string character for each index given.

Required Methods

Example

use array_tool::string::SubstMarks;

"asdf asdf asdf".subst_marks(vec![0,5,8], "Z");

Output

"Zsdf ZsdZ asdf"

Implementations on Foreign Types

impl SubstMarks for str
[src]

[src]

Implementors