pub struct Quoter { /* private fields */ }
Expand description
Partial percent-decoding.
Performs percent-decoding on a slice but can selectively skip decoding certain sequences.
§Examples
// + is set as a protected character and will not be decoded...
let q = Quoter::new(&[], b"+");
// ...but the other encoded characters (like the hyphen below) will.
assert_eq!(q.requote(b"/a%2Db%2Bc").unwrap(), b"/a-b%2Bc");
Implementations§
Auto Trait Implementations§
impl Freeze for Quoter
impl RefUnwindSafe for Quoter
impl Send for Quoter
impl Sync for Quoter
impl Unpin for Quoter
impl UnwindSafe for Quoter
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more