MatcherTrait

Trait MatcherTrait 

Source
pub trait MatcherTrait {
    // Required methods
    fn get(&self, src: &String) -> Option<String>;
    fn get_at(&self, src: &String, index: usize) -> Option<String>;
    fn _to_string(&self) -> String;
}

Required Methods§

Source

fn get(&self, src: &String) -> Option<String>

Source

fn get_at(&self, src: &String, index: usize) -> Option<String>

Source

fn _to_string(&self) -> String

Implementations on Foreign Types§

Source§

impl MatcherTrait for &str

Source§

fn get(&self, src: &String) -> Option<String>

Source§

fn get_at(&self, src: &String, index: usize) -> Option<String>

Source§

fn _to_string(&self) -> String

Source§

impl MatcherTrait for str

Source§

fn get(&self, src: &String) -> Option<String>

Source§

fn get_at(&self, src: &String, index: usize) -> Option<String>

Source§

fn _to_string(&self) -> String

Source§

impl MatcherTrait for String

Source§

fn get(&self, src: &String) -> Option<String>

Source§

fn get_at(&self, src: &String, index: usize) -> Option<String>

Source§

fn _to_string(&self) -> String

Source§

impl MatcherTrait for Vec<String>

Source§

fn get(&self, src: &String) -> Option<String>

Source§

fn get_at(&self, src: &String, index: usize) -> Option<String>

Source§

fn _to_string(&self) -> String

Source§

impl MatcherTrait for LazyCell<Regex>

Source§

fn get(&self, src: &String) -> Option<String>

Source§

fn get_at(&self, src: &String, index: usize) -> Option<String>

Source§

fn _to_string(&self) -> String

Source§

impl MatcherTrait for Regex

Source§

fn get(&self, src: &String) -> Option<String>

Source§

fn get_at(&self, src: &String, index: usize) -> Option<String>

Source§

fn _to_string(&self) -> String

Implementors§

Source§

impl<T> MatcherTrait for T
where T: Fn(&String) -> Option<String>,