1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#![no_std]

use core::str::FromStr;

pub trait Domain {
    fn is_icann(&self) -> bool;
    fn is_private(&self) -> bool;
    fn has_known_suffix(&self) -> bool;
}

pub struct DomainName;

pub struct DnsName;

impl FromStr for DomainName {
    type Err = ();

    fn from_str(_s: &str) -> Result<Self, Self::Err> {
        unimplemented!();
    }
}

impl FromStr for DnsName {
    type Err = ();

    fn from_str(_s: &str) -> Result<Self, Self::Err> {
        unimplemented!();
    }
}