//! This is the.

= needle.map_or_else(|| false, |n| this.is_match(&n)); Ok(res) }); methods.add_method("as_regex_matcher", |_, this, name: Option<String>| { let re = this.as_regex_matcher(); re.map_or_else( || Ok((None, Some("Matcher is not a Country matcher"))), |v| Ok((Some(v), None)), ) }); methods.add_method("as_country_matcher", |_, this, source: LuaTable| { this.params.clear(); for pair in source.pairs::<String, String>() .