Struct percent_encoding::PercentDecode[][src]

pub struct PercentDecode<'a> { /* fields omitted */ }

The return type of percent_decode.

Implementations

impl<'a> PercentDecode<'a>[src]

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> Clone for PercentDecode<'a>[src]

impl<'a> Debug for PercentDecode<'a>[src]

impl<'a> Iterator for PercentDecode<'a>[src]

type Item = u8

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a> RefUnwindSafe for PercentDecode<'a>

impl<'a> Send for PercentDecode<'a>

impl<'a> Sync for PercentDecode<'a>

impl<'a> Unpin for PercentDecode<'a>

impl<'a> UnwindSafe for PercentDecode<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

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?

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.