pub struct Decode {}Expand description
Handles the encoding operations for the application.
This struct provides methods to encode strings using a specified character set.
Implementations§
Source§impl Decode
impl Decode
Sourcepub fn execute(charset: &str, decode_str: &str) -> Result<String, DecodeError>
pub fn execute(charset: &str, decode_str: &str) -> Result<String, DecodeError>
Decodes an encoded string using specified character set.
Processes 4-character groups to reconstruct original bytes by mapping each character to its position in the charset.
§Arguments
&str- Character set used for decoding (must match encoding charset).&str- String to decode.
§Returns
Result<String, DecodeError>- Decoded string or error.
Auto Trait Implementations§
impl Freeze for Decode
impl RefUnwindSafe for Decode
impl Send for Decode
impl Sync for Decode
impl Unpin for Decode
impl UnwindSafe for Decode
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