Struct AuthorityComponents

struct AuthorityComponents<'a> { ... }

Subcomponents of authority.

This is a return type of the authority_components method of the string types (for example RiStr::authority_components.

Implementations

impl<'a> AuthorityComponents<'a>

fn from_iri<S: Spec>(iri: &'a RiReferenceStr<S>) -> Option<Self>

Creates a new AuthorityComponents from the IRI.

fn userinfo(self: &Self) -> Option<&'a str>

Returns the userinfo part, excluding the following @.

fn host(self: &Self) -> &'a str

Returns the host part.

fn port(self: &Self) -> Option<&'a str>

Returns the port part, excluding the following :.

impl<'a> Clone for AuthorityComponents<'a>

fn clone(self: &Self) -> AuthorityComponents<'a>

impl<'a> Copy for AuthorityComponents<'a>

impl<'a> Debug for AuthorityComponents<'a>

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl<'a> Eq for AuthorityComponents<'a>

impl<'a> Freeze for AuthorityComponents<'a>

impl<'a> Hash for AuthorityComponents<'a>

fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)

impl<'a> PartialEq for AuthorityComponents<'a>

fn eq(self: &Self, other: &AuthorityComponents<'a>) -> bool

impl<'a> RefUnwindSafe for AuthorityComponents<'a>

impl<'a> Send for AuthorityComponents<'a>

impl<'a> StructuralPartialEq for AuthorityComponents<'a>

impl<'a> Sync for AuthorityComponents<'a>

impl<'a> Unpin for AuthorityComponents<'a>

impl<'a> UnsafeUnpin for AuthorityComponents<'a>

impl<'a> UnwindSafe for AuthorityComponents<'a>

impl<T> Any for AuthorityComponents<'a>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for AuthorityComponents<'a>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for AuthorityComponents<'a>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for AuthorityComponents<'a>

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for AuthorityComponents<'a>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for AuthorityComponents<'a>

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for AuthorityComponents<'a>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for AuthorityComponents<'a>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for AuthorityComponents<'a>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>