pub struct Endecode<'a> { /* private fields */ }
Expand description
Represents a struct for handling both encode and decode of strings
using a custom character set (charset
). This struct provides methods to
encode and decode strings based on the provided charset
.
§Fields
charset
: A reference to the character set used for encoding and decoding. Each character in thecharset
should be unique and ideally contain exactly 64 characters for base64-like encoding.
§Lifetimes
'a
: The lifetime'a
is associated withcharset
, ensuring that thecharset
reference lives at least as long as theEndecode
instance.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Endecode<'a>
impl<'a> RefUnwindSafe for Endecode<'a>
impl<'a> Send for Endecode<'a>
impl<'a> Sync for Endecode<'a>
impl<'a> Unpin for Endecode<'a>
impl<'a> UnwindSafe for Endecode<'a>
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