address 0.20.0-rc.3

Network address types with strict validation, owned & borrowed variants, and standard library conversions.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/// The validity classification of a domain name or label.
#[must_use]
#[derive(Copy, Clone, Ord, PartialOrd, Eq, PartialEq, Hash, Debug)]
pub(crate) enum NameClass {
    /// Valid & already lowercase.
    Lowercase,

    /// Valid once uppercase letters are lowercased.
    MixedCase,

    /// Invalid even ignoring case.
    Invalid,
}