pub const fn new_unwrapped(hostname: &'a str) -> Self {
        match Self::new(hostname) {
            Some(hostname) => hostname,
            None => ::core::panic!("invalid hostname"),
        }
    }
/// Create a new hostname, panicking if the hostname is invalid.
///
/// # Panics
///
/// This is the same as [`new`](Self::new), but it will panic on invalid
/// hostnames.
///
/// This should only be used in `const` contexts where the evaluation will
/// fail at compile time.
///
/// # Example
///
/// ```
/// use w5500_hl::Hostname;
///
/// const MY_HOSTNAME: Hostname = Hostname::new_unwrapped("valid.hostname");
/// ```
Create a new hostname, panicking if the hostname is invalid.
Create a new hostname panicking if the hostname is invalid .
pub const fn new_unwrapped(hostname: &'a str) -> Self {
        match Self::new(hostname) {
            Some(hostname) => hostname,
            None => ::core::panic!("invalid hostname"),
        }
    }
pub const fn new_unwrapped ( hostname : & ' a str ) -> Self { match Self :: new ( hostname ) { Some ( hostname ) => hostname , None => :: core :: panic ! ( " " ) , } }
Create a new hostname, panicking if the hostname is invalid.
Create a new hostname panicking if the hostname is invalid .
hostname
&'a str
hostname
&'a str
panics
This is the same as [`new`](Self::new), but it will panic on invalid
hostnames.

This should only be used in `const` contexts where the evaluation will
fail at compile time.
This is the same as [ ` new ` ] ( Self :: new ) but it will panic on invalid hostnames . This should only be used in ` const ` contexts where the evaluation will fail at compile time .
example


const MY_HOSTNAME: Hostname = Hostname::new_unwrapped("valid.hostname");
```
const MY_HOSTNAME : Hostname = Hostname :: new_unwrapped ( " valid . hostname " ) ; ` ` `