Struct posix_regex::compile::PosixRegexBuilder [−][src]
pub struct PosixRegexBuilder<'a> { /* fields omitted */ }A regex builder struct
Methods
impl<'a> PosixRegexBuilder<'a>[src]
impl<'a> PosixRegexBuilder<'a>pub fn new(input: &'a [u8]) -> Self[src]
pub fn new(input: &'a [u8]) -> SelfCreate a new instance that is ready to parse the regex input
pub fn with_class(self, name: &'a [u8], callback: fn(_: u8) -> bool) -> Self[src]
pub fn with_class(self, name: &'a [u8], callback: fn(_: u8) -> bool) -> SelfAdd a custom collation class, for use within square brackets (such as [[:digit:]])
pub fn with_default_classes(self) -> Self[src]
pub fn with_default_classes(self) -> SelfAdd all the default collation classes, like [[:digit:]] and [[:alnum:]]
pub fn compile(&mut self) -> Result<PosixRegex<'static>, Error>[src]
pub fn compile(&mut self) -> Result<PosixRegex<'static>, Error>"Compile" this regex to a struct ready to match input
pub fn compile_tokens(&mut self) -> Result<Vec<Vec<(Token, Range)>>, Error>[src]
pub fn compile_tokens(&mut self) -> Result<Vec<Vec<(Token, Range)>>, Error>Auto Trait Implementations
impl<'a> Send for PosixRegexBuilder<'a>
impl<'a> Send for PosixRegexBuilder<'a>impl<'a> Sync for PosixRegexBuilder<'a>
impl<'a> Sync for PosixRegexBuilder<'a>