[][src]Trait like::Escape

pub trait Escape {
    type Err;
    type Output;
    fn escape(&self, esc: &Self) -> Result<Self::Output, Self::Err>;
}

Convert the pattern to use standard backslash escape convention.

Associated Types

type Err

The associated error which can be returned from pattern matching.

type Output

The output type of conversion.

Loading content...

Required methods

fn escape(&self, esc: &Self) -> Result<Self::Output, Self::Err>

Change if self have a escape character.

Returns new pattern if there are any escape characters in the pattern.

Loading content...

Implementations on Foreign Types

impl Escape for str[src]

type Err = InvalidEscapeError

type Output = String

impl Escape for [u8][src]

type Err = InvalidEscapeError

type Output = Vec<u8>

Loading content...

Implementors

Loading content...