Struct fast_escape::Escaper [] [src]

pub struct Escaper<C: ContainsChar> { /* fields omitted */ }

This struct provides escaping of characters.

Methods

impl<C: ContainsChar> Escaper<C>
[src]

Creates the escaper. escape_char is the char which is used for escaping (e.g. '\') special_chars is set of chars that should be escaped.

Trait Implementations

impl<C: ContainsChar> Transform for Escaper<C>
[src]

Writes transformed char into provided writer.

Calculates new size hint based on how transformation affects output size. Read more

Writes transformed string into provided writer.