pub fn parse(url: String) -> Result<String, Utf8Error> {
        let iter = percent_decode(url.as_bytes());
        let decoded = iter.decode_utf8()?;
        let iter = utf8_percent_encode(&decoded, FRAGMENT);
        Ok(iter.collect())
    }
/// Out of safety this function first decodes and then encodes a URL.
Out of safety this function first decodes and then encodes a URL.
Out of safety this function first decodes and then encodes a URL .
pub fn parse(url: String) -> Result<String, Utf8Error> {
        let iter = percent_decode(url.as_bytes());
        let decoded = iter.decode_utf8()?;
        let iter = utf8_percent_encode(&decoded, FRAGMENT);
        Ok(iter.collect())
    }
pub fn parse ( url : String ) -> Result < String , Utf8Error > { let iter = percent_decode ( url . as_bytes ( ) ) ; let decoded = iter . decode_utf8 ( ) ? ; let iter = utf8_percent_encode ( & decoded , FRAGMENT ) ; Ok ( iter . collect ( ) ) }
Out of safety this function first decodes and then encodes a URL.
Out of safety this function first decodes and then encodes a URL .
url
String