Struct actix_router::Quoter
source · [−]pub struct Quoter { /* private fields */ }
Expand description
A quoter
Implementations
sourceimpl Quoter
impl Quoter
pub fn new(safe: &[u8], protected: &[u8]) -> Quoter
sourcepub fn requote(&self, val: &[u8]) -> Option<Vec<u8>>
pub fn requote(&self, val: &[u8]) -> Option<Vec<u8>>
Decodes safe percent-encoded sequences from val
.
Returns None
when no modification to the original byte string was required.
Non-ASCII bytes are accepted as valid input.
Behavior for invalid/incomplete percent-encoding sequences is unspecified and may include removing the invalid sequence from the output or passing it as-is.
Auto Trait Implementations
impl RefUnwindSafe for Quoter
impl Send for Quoter
impl Sync for Quoter
impl Unpin for Quoter
impl UnwindSafe for Quoter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more