pub struct Decode {}
Expand description
Handles the decoding operations for the application.
This struct provides methods to decode 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
- The character set used for decoding.&str
- The string to decode.
§Returns
Result<String, DecodeError>
- Result of decoding operation.
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