pub struct AuthorityComponents<'a> { /* private fields */ }Expand description
Subcomponents of authority.
This is a return type of the authority_components method of the string
types (for example RiStr::authority_components.
Implementations§
Source§impl<'a> AuthorityComponents<'a>
impl<'a> AuthorityComponents<'a>
Sourcepub fn from_iri<S: Spec>(iri: &'a RiReferenceStr<S>) -> Option<Self>
pub fn from_iri<S: Spec>(iri: &'a RiReferenceStr<S>) -> Option<Self>
Creates a new AuthorityComponents from the IRI.
Sourcepub fn userinfo(&self) -> Option<&'a str>
pub fn userinfo(&self) -> Option<&'a str>
Returns the userinfo part, excluding the following @.
Trait Implementations§
Source§impl<'a> Clone for AuthorityComponents<'a>
impl<'a> Clone for AuthorityComponents<'a>
Source§fn clone(&self) -> AuthorityComponents<'a>
fn clone(&self) -> AuthorityComponents<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for AuthorityComponents<'a>
impl<'a> Debug for AuthorityComponents<'a>
Source§impl<'a> Hash for AuthorityComponents<'a>
impl<'a> Hash for AuthorityComponents<'a>
Source§impl<'a> PartialEq for AuthorityComponents<'a>
impl<'a> PartialEq for AuthorityComponents<'a>
impl<'a> Copy for AuthorityComponents<'a>
impl<'a> Eq for AuthorityComponents<'a>
impl<'a> StructuralPartialEq for AuthorityComponents<'a>
Auto Trait Implementations§
impl<'a> Freeze for AuthorityComponents<'a>
impl<'a> RefUnwindSafe for AuthorityComponents<'a>
impl<'a> Send 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>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more