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.
Methods from Deref<Target = PctStr>§
Trait Implementations§
source§impl<'a> PartialEq<&'a Host> for HostBuf
impl<'a> PartialEq<&'a Host> for HostBuf
source§impl<'a> PartialEq<&'a str> for Host
impl<'a> PartialEq<&'a str> for Host
source§impl PartialEq<Host> for HostBuf
impl PartialEq<Host> for HostBuf
source§impl PartialEq for Host
impl PartialEq for Host
source§impl<'a> PartialOrd<&'a Host> for HostBuf
impl<'a> PartialOrd<&'a Host> for HostBuf
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<Host> for HostBuf
impl PartialOrd<Host> for HostBuf
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd for Host
impl PartialOrd for Host
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more