[][src]Struct percent_encoding::PercentDecode

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

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

impl<'a> From<PercentDecode<'a>> for Cow<'a, [u8]>[src]

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

type Item = u8

The type of the elements being iterated over.

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

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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> From<T> for T[src]

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.

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

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

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