pub struct Param<'a>(/* private fields */);Expand description
Abstracted stringly parameter in the URI.
This type abstracts the parameter that may be encoded allowing lazy decoding, possibly even
without allocation.
When constructing Uri to be displayed you may use From<S> where S is one of various
stringly types. The conversion is always cheap.
Implementations§
Source§impl<'a> Param<'a>
impl<'a> Param<'a>
Sourcepub fn bytes(&self) -> ParamBytes<'_>
Available on crate feature non-compliant-bytes only.
pub fn bytes(&self) -> ParamBytes<'_>
non-compliant-bytes only.Creates a byte iterator yielding decoded bytes.
Sourcepub fn into_bytes(self) -> ParamBytesOwned<'a>
Available on crate feature non-compliant-bytes only.
pub fn into_bytes(self) -> ParamBytesOwned<'a>
non-compliant-bytes only.Converts the parameter into iterator yielding decoded bytes.
Trait Implementations§
Source§impl<'a> From<&'a [u8]> for Param<'a>
Available on crate feature non-compliant-bytes only.Cheap conversion
impl<'a> From<&'a [u8]> for Param<'a>
Available on crate feature
non-compliant-bytes only.Cheap conversion
Source§impl<'a> From<Param<'a>> for Cow<'a, [u8]>
Available on crate feature non-compliant-bytes only.Cheap conversion
impl<'a> From<Param<'a>> for Cow<'a, [u8]>
Available on crate feature
non-compliant-bytes only.Cheap conversion
Source§impl<'a> From<Param<'a>> for Vec<u8>
Available on crate feature non-compliant-bytes only.Cheap conversion
impl<'a> From<Param<'a>> for Vec<u8>
Available on crate feature
non-compliant-bytes only.Cheap conversion
Source§impl<'a> From<Vec<u8>> for Param<'a>
Available on crate feature non-compliant-bytes only.Cheap conversion
impl<'a> From<Vec<u8>> for Param<'a>
Available on crate feature
non-compliant-bytes only.Cheap conversion
Auto Trait Implementations§
impl<'a> Freeze for Param<'a>
impl<'a> RefUnwindSafe for Param<'a>
impl<'a> Send for Param<'a>
impl<'a> Sync for Param<'a>
impl<'a> Unpin for Param<'a>
impl<'a> UnwindSafe for Param<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more