Trait onig::Replacer [] [src]

pub trait Replacer {
    fn reg_replace(&mut self, caps: &Captures) -> Cow<str>;
}

Replacer describes types that can be used to replace matches in a string.

Required Methods

Returns a possibly owned string that is used to replace the match corresponding to the caps capture group.

Implementors