pub struct UserInfo(/* private fields */);Implementations§
source§impl UserInfo
impl UserInfo
sourcepub fn new<T: ?Sized + AsRef<[u8]>>(
input: &T,
) -> Result<&Self, InvalidUserInfo<&T>>
pub fn new<T: ?Sized + AsRef<[u8]>>( input: &T, ) -> Result<&Self, InvalidUserInfo<&T>>
Creates a new URI user info by parsing the input value
sourcepub const unsafe fn new_unchecked(input: &[u8]) -> &Self
pub const unsafe fn new_unchecked(input: &[u8]) -> &Self
Creates a new URI user info from the input value without validation.
§Safety
The input data must be a valid URI user info.
Methods from Deref<Target = PctStr>§
Trait Implementations§
source§impl AsRef<UserInfo> for UserInfoBuf
impl AsRef<UserInfo> for UserInfoBuf
source§impl Borrow<UserInfo> for UserInfoBuf
impl Borrow<UserInfo> for UserInfoBuf
source§impl<'a> PartialEq<&'a UserInfo> for UserInfoBuf
impl<'a> PartialEq<&'a UserInfo> for UserInfoBuf
source§impl<'a> PartialEq<&'a str> for UserInfo
impl<'a> PartialEq<&'a str> for UserInfo
source§impl PartialEq<UserInfo> for UserInfoBuf
impl PartialEq<UserInfo> for UserInfoBuf
source§impl PartialEq for UserInfo
impl PartialEq for UserInfo
source§impl<'a> PartialOrd<&'a UserInfo> for UserInfoBuf
impl<'a> PartialOrd<&'a UserInfo> for UserInfoBuf
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<UserInfo> for UserInfoBuf
impl PartialOrd<UserInfo> for UserInfoBuf
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 UserInfo
impl PartialOrd for UserInfo
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 ToOwned for UserInfo
impl ToOwned for UserInfo
§type Owned = UserInfoBuf
type Owned = UserInfoBuf
The resulting type after obtaining ownership.
source§fn to_owned(&self) -> UserInfoBuf
fn to_owned(&self) -> UserInfoBuf
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more