[−][src]Struct percent_encoding::PercentDecode
The return type of percent_decode()
.
Methods
impl<'a> PercentDecode<'a>
[src][−]
pub fn if_any(&self) -> Option<Vec<u8>>
[src][−]
If the percent-decoding is different from the input, return it as a new bytes vector.
pub fn decode_utf8(self) -> Result<Cow<'a, str>, Utf8Error>
[src][−]
Decode the result of percent-decoding as UTF-8.
This is return Err
when the percent-decoded bytes are not well-formed in UTF-8.
pub fn decode_utf8_lossy(self) -> Cow<'a, str>
[src][−]
Decode the result of percent-decoding as UTF-8, lossily.
Invalid UTF-8 percent-encoded byte sequences will be replaced � U+FFFD, the replacement character.
Trait Implementations
impl<'a> Iterator for PercentDecode<'a>
[src][+]
impl<'a> Clone for PercentDecode<'a>
[src][+]
impl<'a> From<PercentDecode<'a>> for Cow<'a, [u8]>
[src][+]
impl<'a> Debug for PercentDecode<'a>
[src][+]
Auto Trait Implementations
impl<'a> Send for PercentDecode<'a>
impl<'a> Sync for PercentDecode<'a>
Blanket Implementations
impl<I> IntoIterator for I where
I: Iterator,
[src][−]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[src][−]
impl<T> From for T
[src][−]
impl<T, U> Into for T where
U: From<T>,
[src][−]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][−]
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src][−]
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src][−]
impl<T> Borrow for T where
T: ?Sized,
[src][−]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src][−]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src][−]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src][−]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src][−]
impl<T> Any for T where
T: 'static + ?Sized,
[src][−]
T: 'static + ?Sized,