match-domain: Rapid checker for the prefix and suffix matching of domain names, written in Rust
Double-array trie based domain matcher, written in Rust.
This enables you to check if the given domain name matches the prefix or suffix of the domain name in the trie.
Usage
use DomainMatchingRule;
let domain_matching_rule = try_from
.unwrap;
assert!;
assert!;
assert!;
assert!;
Note that for the DomainMatchingRule::is_matched(&self, domain_name: &str) -> bool method:
- the argument
domain_nameshould be in lowercase - the argument
domain_nameshould not contain a leading dot