pub struct CodecTool;Implementations§
Source§impl CodecTool
impl CodecTool
pub fn new() -> Self
pub fn base64_encode<T: AsRef<[u8]>>(&self, data: T) -> String
pub fn base64_decode(&self, data: &str) -> Result<Vec<u8>>
pub fn hex_encode<T: AsRef<[u8]>>(&self, data: T) -> String
pub fn hex_decode(&self, data: &str) -> Result<Vec<u8>>
pub fn url_encode(&self, data: &str) -> String
pub fn url_decode(&self, data: &str) -> Result<String>
pub fn html_escape(&self, data: &str) -> String
pub fn html_unescape(&self, data: &str) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CodecTool
impl RefUnwindSafe for CodecTool
impl Send for CodecTool
impl Sync for CodecTool
impl Unpin for CodecTool
impl UnsafeUnpin for CodecTool
impl UnwindSafe for CodecTool
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