pub struct Host(/* private fields */);Expand description
IRI authority host.
Implementations§
Source§impl Host
impl Host
Sourcepub fn new<T: ?Sized + AsRef<str>>(input: &T) -> Result<&Self, InvalidHost<&T>>
pub fn new<T: ?Sized + AsRef<str>>(input: &T) -> Result<&Self, InvalidHost<&T>>
Creates a new IRI host by parsing the input value
Sourcepub const unsafe fn new_unchecked(input: &str) -> &Self
pub const unsafe fn new_unchecked(input: &str) -> &Self
Creates a new IRI host from the input value without validation.
§Safety
The input data must be a valid IRI host.