pub struct Param<'a>(_);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
sourceimpl<'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
sourceimpl<'a> From<&'a [u8]> for Param<'a>
Available on crate feature non-compliant-bytes only.
impl<'a> From<&'a [u8]> for Param<'a>
Available on crate feature
non-compliant-bytes only.Cheap conversion
sourceimpl<'a> From<Param<'a>> for Cow<'a, [u8]>
Available on crate feature non-compliant-bytes only.
impl<'a> From<Param<'a>> for Cow<'a, [u8]>
Available on crate feature
non-compliant-bytes only.Cheap conversion
sourceimpl<'a> From<Param<'a>> for Vec<u8>
Available on crate feature non-compliant-bytes only.
impl<'a> From<Param<'a>> for Vec<u8>
Available on crate feature
non-compliant-bytes only.Cheap conversion
sourceimpl<'a> From<Vec<u8, Global>> for Param<'a>
Available on crate feature non-compliant-bytes only.
impl<'a> From<Vec<u8, Global>> for Param<'a>
Available on crate feature
non-compliant-bytes only.Cheap conversion
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more