Trait BytesRegexPattern

Source
pub trait BytesRegexPattern {
    type Error;
    type Output;

    // Required method
    fn try_into_regex(self) -> Result<Self::Output, Self::Error>;

    // Provided method
    fn into_regex(self) -> Self::Output
       where Self: Sized,
             Self::Error: Debug { ... }
}

Required Associated Types§

Required Methods§

Source

fn try_into_regex(self) -> Result<Self::Output, Self::Error>

Provided Methods§

Source

fn into_regex(self) -> Self::Output
where Self: Sized, Self::Error: Debug,

Converts the pattern into a regex, panicking if it fails.

§Panics

Panics if the regex pattern fails to compile.

Implementations on Foreign Types§

Source§

impl BytesRegexPattern for &str

Implementors§