Skip to main content

decode_segment

Function decode_segment 

Source
pub fn decode_segment(s: &str) -> String
Expand description

Decode a segment produced by segment back to the original component. Exact inverse of segment; on our own output the round-trip is lossless. A stray % not followed by two hex digits is passed through literally so decoding never panics on unexpected input.