RegexNodeTrait

Trait RegexNodeTrait 

Source
pub trait RegexNodeTrait:
    AsAnyValue
    + AnyValueTrait
    + Send
    + Sync {
    // Required method
    fn clone_boxed(&self) -> RegexNode;

    // Provided methods
    fn compiled(&self) -> Regex { ... }
    fn found(&self, text__170: Arc<String>) -> bool { ... }
    fn find(&self, text__173: Arc<String>) -> Result<Match> { ... }
    fn replace(
        &self,
        text__176: Arc<String>,
        format__177: Arc<dyn Fn(Match) -> Arc<String> + Send + Sync>,
    ) -> Arc<String> { ... }
    fn split(&self, text__180: Arc<String>) -> List<Arc<String>> { ... }
}

Required Methods§

Provided Methods§

Source

fn compiled(&self) -> Regex

Source

fn found(&self, text__170: Arc<String>) -> bool

Source

fn find(&self, text__173: Arc<String>) -> Result<Match>

Source

fn replace( &self, text__176: Arc<String>, format__177: Arc<dyn Fn(Match) -> Arc<String> + Send + Sync>, ) -> Arc<String>

Source

fn split(&self, text__180: Arc<String>) -> List<Arc<String>>

Implementors§