Function gtld_data::domain_exists [] [src]

pub fn domain_exists<S: Into<String>>(domain: S) -> bool

Determines whether a domain exists within a Gtld defined by the gtld_data::all() method.

Examples

Check if a domain exists given a str:

use gtld_data::domain_exists;

let exists = domain_exists("com");

Check if a domain exists given a String:

use gtld_data::domain_exists;

let exists = domain_exists(String::from("net"));